Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def get_llm_response(user_input):
|
|
| 26 |
|
| 27 |
# Function to convert text to speech using gTTS
|
| 28 |
def text_to_speech(text, output_audio="output_audio.mp3"):
|
| 29 |
-
tts = gTTS(text)
|
| 30 |
tts.save(output_audio)
|
| 31 |
return output_audio
|
| 32 |
|
|
|
|
| 26 |
|
| 27 |
# Function to convert text to speech using gTTS
|
| 28 |
def text_to_speech(text, output_audio="output_audio.mp3"):
|
| 29 |
+
tts = gTTS(text, lang='ur')
|
| 30 |
tts.save(output_audio)
|
| 31 |
return output_audio
|
| 32 |
|