Update app.py
Browse files
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='
|
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
|