Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def transcribe_audio(audio_file):
|
|
29 |
|
30 |
# Function to generate speech from text
|
31 |
def text_to_speech(text):
|
32 |
-
tts = gTTS(text=text, lang="
|
33 |
temp_audio_path = tempfile.NamedTemporaryFile(delete=False, suffix=".mp3").name
|
34 |
tts.save(temp_audio_path)
|
35 |
return temp_audio_path
|
|
|
29 |
|
30 |
# Function to generate speech from text
|
31 |
def text_to_speech(text):
|
32 |
+
tts = gTTS(text=text, lang="pt")
|
33 |
temp_audio_path = tempfile.NamedTemporaryFile(delete=False, suffix=".mp3").name
|
34 |
tts.save(temp_audio_path)
|
35 |
return temp_audio_path
|