Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ def voice_chat(audio_file, chat_history, session_id):
|
|
| 51 |
ai_reply = ai_chat(user_text)
|
| 52 |
|
| 53 |
# TTS
|
| 54 |
-
tts = gTTS(ai_reply)
|
| 55 |
tts_path = tempfile.NamedTemporaryFile(suffix=".mp3", delete=False)
|
| 56 |
tts.save(tts_path.name)
|
| 57 |
|
|
|
|
| 51 |
ai_reply = ai_chat(user_text)
|
| 52 |
|
| 53 |
# TTS
|
| 54 |
+
tts = gTTS(ai_reply, lang='en')
|
| 55 |
tts_path = tempfile.NamedTemporaryFile(suffix=".mp3", delete=False)
|
| 56 |
tts.save(tts_path.name)
|
| 57 |
|