Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def speech_recognition_callback():
|
|
114 |
# Store the speech output in the session state
|
115 |
st.session_state.speech_input = st.session_state.my_stt_output
|
116 |
|
117 |
-
def text_to_speech(text,
|
118 |
# Use gTTS to convert text to speech
|
119 |
tts = gTTS(text=text, lang='en')
|
120 |
# Save the speech as bytes in memory
|
|
|
114 |
# Store the speech output in the session state
|
115 |
st.session_state.speech_input = st.session_state.my_stt_output
|
116 |
|
117 |
+
def text_to_speech(text, retries=3, delay=5):
|
118 |
# Use gTTS to convert text to speech
|
119 |
tts = gTTS(text=text, lang='en')
|
120 |
# Save the speech as bytes in memory
|