on1onmangoes commited on
Commit
8f1972b
1 Parent(s): 1b650c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ audio=st.file_uploader("Upload Your Audio File", type=['mp3','wav','m4a'])
16
 
17
  if audio:
18
  audio_segment= AudioSegment.from_file(audio)
19
- chunks=silence.split_on_silence(audio_segment, min_silence_length=500, silence_thresh= audio_segment.dBFS-20,keep_silence=100)
20
  for index, chunk in enumerate (chunks):
21
  chunk.export(str(index)+".wav", format="wav")
22
  print(chunk)
 
16
 
17
  if audio:
18
  audio_segment= AudioSegment.from_file(audio)
19
+ chunks=silence.split_on_silence(audio_segment, min_silence_len=500, silence_thresh= audio_segment.dBFS-20,keep_silence=100)
20
  for index, chunk in enumerate (chunks):
21
  chunk.export(str(index)+".wav", format="wav")
22
  print(chunk)