Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,7 +155,7 @@ models = {
|
|
| 155 |
"large-v3": whisperx.load_model("large-v3", device, compute_type=compute_type, vad_method='silero'),
|
| 156 |
}
|
| 157 |
|
| 158 |
-
def split_audio_by_pause(audio, sr, pause_threshold, top_db=30, energy_threshold=0.
|
| 159 |
intervals = librosa.effects.split(audio, top_db=top_db)
|
| 160 |
merged_intervals = []
|
| 161 |
current_start, current_end = intervals[0]
|
|
|
|
| 155 |
"large-v3": whisperx.load_model("large-v3", device, compute_type=compute_type, vad_method='silero'),
|
| 156 |
}
|
| 157 |
|
| 158 |
+
def split_audio_by_pause(audio, sr, pause_threshold, top_db=30, energy_threshold=0.03):
|
| 159 |
intervals = librosa.effects.split(audio, top_db=top_db)
|
| 160 |
merged_intervals = []
|
| 161 |
current_start, current_end = intervals[0]
|