xihajun commited on
Commit
1300342
β€’
1 Parent(s): 90dcff8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,9 +50,9 @@ if uploaded_file is not None:
50
 
51
  # convert to wav
52
  format_ = uploaded_file.name.split('.')[-1]
53
- outputname = uploaded_file.name + ".mp3"
54
  sound = AudioSegment.from_file(uploaded_file,format=format_)
55
- sound.export(outputname, format="mp3")
56
 
57
  st.title("Audio2Many")
58
  st.write('δΈ€ε…±ζœ‰', round(length_audio, 2) , "εˆ†ι’Ÿ")
 
50
 
51
  # convert to wav
52
  format_ = uploaded_file.name.split('.')[-1]
53
+ outputname = uploaded_file.name + ".wav"
54
  sound = AudioSegment.from_file(uploaded_file,format=format_)
55
+ sound.export(outputname, format="wav")
56
 
57
  st.title("Audio2Many")
58
  st.write('δΈ€ε…±ζœ‰', round(length_audio, 2) , "εˆ†ι’Ÿ")