Spaces:
Sleeping
Sleeping
Walterchamy
commited on
Commit
•
d3eab01
1
Parent(s):
d786467
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ def generate_response(user_input):
|
|
115 |
return response.choices[0].message.content
|
116 |
|
117 |
def text_to_speech(text):
|
118 |
-
|
119 |
tts = gTTS(text=text, lang=('en'))
|
120 |
# # Save the audio file
|
121 |
tts.save('output.mp3')
|
|
|
115 |
return response.choices[0].message.content
|
116 |
|
117 |
def text_to_speech(text):
|
118 |
+
Create a text-to-speech object
|
119 |
tts = gTTS(text=text, lang=('en'))
|
120 |
# # Save the audio file
|
121 |
tts.save('output.mp3')
|