Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ footer {
|
|
| 65 |
'''
|
| 66 |
|
| 67 |
# Functions
|
| 68 |
-
def trim_silence(audio, threshold=0.
|
| 69 |
abs_audio = np.abs(audio)
|
| 70 |
indices = np.where(abs_audio > threshold)[0]
|
| 71 |
|
|
|
|
| 65 |
'''
|
| 66 |
|
| 67 |
# Functions
|
| 68 |
+
def trim_silence(audio, threshold=0.1):
|
| 69 |
abs_audio = np.abs(audio)
|
| 70 |
indices = np.where(abs_audio > threshold)[0]
|
| 71 |
|