antoniomae1234 commited on
Commit
b33d732
1 Parent(s): 2d095ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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='en')
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