Spaces:
Sleeping
Sleeping
beweinreich
commited on
Commit
•
b859cb1
1
Parent(s):
fb33f1b
softer limits
Browse files- audio_analyzer.py +1 -2
audio_analyzer.py
CHANGED
@@ -62,8 +62,7 @@ class AudioAnalyzer:
|
|
62 |
# Load audio file
|
63 |
audio = AudioSegment.from_file(audio_file)
|
64 |
|
65 |
-
|
66 |
-
chunks = split_on_silence(audio, min_silence_len=500, silence_thresh=-40)
|
67 |
|
68 |
# Combine chunks back together
|
69 |
processed_audio = AudioSegment.empty()
|
|
|
62 |
# Load audio file
|
63 |
audio = AudioSegment.from_file(audio_file)
|
64 |
|
65 |
+
chunks = split_on_silence(audio, min_silence_len=1000, silence_thresh=-20)
|
|
|
66 |
|
67 |
# Combine chunks back together
|
68 |
processed_audio = AudioSegment.empty()
|