Spaces:
Sleeping
Sleeping
antoniomae1234
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import tempfile
|
|
4 |
import os
|
5 |
|
6 |
def text_to_speech(text):
|
7 |
-
tts = gTTS(text=text, lang='
|
8 |
_, temp_path = tempfile.mkstemp(suffix=".mp3")
|
9 |
tts.save(temp_path)
|
10 |
return temp_path
|
|
|
4 |
import os
|
5 |
|
6 |
def text_to_speech(text):
|
7 |
+
tts = gTTS(text=text, lang='pt')
|
8 |
_, temp_path = tempfile.mkstemp(suffix=".mp3")
|
9 |
tts.save(temp_path)
|
10 |
return temp_path
|