Update app.py
Browse files
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="
|
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
|