coraKong commited on
Commit
0db43d8
1 Parent(s): 4228841

Update app.py

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