Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def tts(text):
|
|
69 |
f.write(chunk)
|
70 |
|
71 |
# Play the audio in Streamlit
|
72 |
-
st.audio(audio_file_path, format="audio/mp3")
|
73 |
except Exception as e:
|
74 |
st.error(f"Error generating speech: {e}")
|
75 |
|
|
|
69 |
f.write(chunk)
|
70 |
|
71 |
# Play the audio in Streamlit
|
72 |
+
st.audio(audio_file_path, format="audio/mp3",autoplay=True)
|
73 |
except Exception as e:
|
74 |
st.error(f"Error generating speech: {e}")
|
75 |
|