artificialguybr commited on
Commit
8f926f6
1 Parent(s): 967e20b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def process_video(radio, video, target_language, has_closeup_face):
105
  translated_text = translator.translate(whisper_text, src=whisper_language, dest=target_language_code).text
106
  print(translated_text)
107
 
108
- tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1.1")
109
  tts.to('cuda')
110
  tts.tts_to_file(translated_text, speaker_wav=f"{run_uuid}_output_audio_final.wav", file_path=f"{run_uuid}_output_synth.wav", language=target_language_code)
111
 
 
105
  translated_text = translator.translate(whisper_text, src=whisper_language, dest=target_language_code).text
106
  print(translated_text)
107
 
108
+ tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2")
109
  tts.to('cuda')
110
  tts.tts_to_file(translated_text, speaker_wav=f"{run_uuid}_output_audio_final.wav", file_path=f"{run_uuid}_output_synth.wav", language=target_language_code)
111