Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ if len(audio) > 0:
|
|
| 33 |
#st.audio(audio.export().read())
|
| 34 |
|
| 35 |
# To save audio to a file, use pydub export method:
|
| 36 |
-
audio.export("audio.wav", format="wav")
|
| 37 |
with tempfile.TemporaryDirectory() as tmpdirname:
|
| 38 |
filepath = os.path.join(tmpdirname, "audio.mp3")
|
| 39 |
audio.export(filepath, format="mp3")
|
|
|
|
| 33 |
#st.audio(audio.export().read())
|
| 34 |
|
| 35 |
# To save audio to a file, use pydub export method:
|
| 36 |
+
#audio.export("audio.wav", format="wav")
|
| 37 |
with tempfile.TemporaryDirectory() as tmpdirname:
|
| 38 |
filepath = os.path.join(tmpdirname, "audio.mp3")
|
| 39 |
audio.export(filepath, format="mp3")
|