YuviBitts commited on
Commit
54ca911
·
verified ·
1 Parent(s): f4de1b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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