Spaces:
Runtime error
Runtime error
artificialguybr
commited on
Commit
β’
8f926f6
1
Parent(s):
967e20b
Update app.py
Browse files
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/
|
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 |
|