salomonsky commited on
Commit
c48dd31
·
verified ·
1 Parent(s): d38b83c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def generate(audio_text, history, temperature=None, max_new_tokens=512, top_p=0.
78
  return response, audio_file
79
 
80
  def text_to_speech(text, speed=1.3):
81
- tts = gTTS(text=text, lang='es-ES')
82
  audio_fp = io.BytesIO()
83
  tts.write_to_fp(audio_fp)
84
  audio_fp.seek(0)
 
78
  return response, audio_file
79
 
80
  def text_to_speech(text, speed=1.3):
81
+ tts = gTTS(text=text, lang='es')
82
  audio_fp = io.BytesIO()
83
  tts.write_to_fp(audio_fp)
84
  audio_fp.seek(0)