antoniomae1234 commited on
Commit
d3a7dcf
·
verified ·
1 Parent(s): 03d611c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def generate_voice(text, audio_file_path):
27
  tts.tts_to_file(
28
  text,
29
  speaker_wav=audio_file_path, # Directly use the file path string
30
- language="en", # Assuming the language is English
31
  file_path=output_path,
32
  split_sentences=True,
33
  # Assuming the TTS model requires a speaker identifier and '1' is a valid identifier
 
27
  tts.tts_to_file(
28
  text,
29
  speaker_wav=audio_file_path, # Directly use the file path string
30
+ language="pt", # Assuming the language
31
  file_path=output_path,
32
  split_sentences=True,
33
  # Assuming the TTS model requires a speaker identifier and '1' is a valid identifier