Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -80,6 +80,9 @@ if len(audio) > 0:
|
|
80 |
st.audio(audio.export().read())
|
81 |
|
82 |
# To save audio to a file, use pydub export method:
|
|
|
|
|
|
|
83 |
audio.export("audio.wav", format="wav")
|
84 |
|
85 |
# To get audio properties, use pydub AudioSegment properties:
|
|
|
80 |
st.audio(audio.export().read())
|
81 |
|
82 |
# To save audio to a file, use pydub export method:
|
83 |
+
# https://docs.streamlit.io/develop/concepts/architecture/caching
|
84 |
+
# @st.cache_data
|
85 |
+
@st.cache_data
|
86 |
audio.export("audio.wav", format="wav")
|
87 |
|
88 |
# To get audio properties, use pydub AudioSegment properties:
|