lyimo commited on
Commit
133d48f
1 Parent(s): a3550a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def generate_response(transcribed_text):
29
  return response['choices'][0]['message']['content']
30
 
31
  def inference(text):
32
- tts = gTTS(text=text, lang='sw', tld='co.tz')
33
  output_file = "tts_output.mp3"
34
  tts.save(output_file)
35
  return output_file
 
29
  return response['choices'][0]['message']['content']
30
 
31
  def inference(text):
32
+ tts = gTTS(text=text, lang='sw', tld='com.mx',slow=False)
33
  output_file = "tts_output.mp3"
34
  tts.save(output_file)
35
  return output_file