Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def text_to_speech(text: str, speaker_wav, speaker_wav_file, language: str):
|
|
20 |
if speaker_wav is not None:
|
21 |
de_tts.tts_to_file(text, speaker_wav=speaker_wav, file_path=file_path)
|
22 |
else:
|
23 |
-
|
24 |
else:
|
25 |
if speaker_wav is not None:
|
26 |
tts.tts_to_file(text, speaker_wav=speaker_wav, language=language, file_path=file_path)
|
|
|
20 |
if speaker_wav is not None:
|
21 |
de_tts.tts_to_file(text, speaker_wav=speaker_wav, file_path=file_path)
|
22 |
else:
|
23 |
+
de_tts.tts_to_file(text, file_path=file_path)
|
24 |
else:
|
25 |
if speaker_wav is not None:
|
26 |
tts.tts_to_file(text, speaker_wav=speaker_wav, language=language, file_path=file_path)
|