From ec922bc26e017fa026d0e7687cd64458557379ec Mon Sep 17 00:00:00 2001 From: isatyamks Date: Mon, 23 Sep 2024 19:09:36 +0530 Subject: [PATCH] Add voice conversion functionality to _t1.py --- python _t1.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 python _t1.py diff --git a/python _t1.py b/python _t1.py new file mode 100644 index 0000000000..ea47c71d90 --- /dev/null +++ b/python _t1.py @@ -0,0 +1,12 @@ +# from TTS.api import TTS +# tts = TTS(model_name="voice_conversion_models/multilingual/vctk/freevc24", progress_bar=False).to("cuda:2") +# tts.voice_conversion_to_file(source_wav="_t1_source.wav", target_wav="_t1_target.wav", file_path="_t1.wav") + + +#try this + +from TTS.api import TTS + +tts = TTS(model_name="voice_conversion_models/multilingual/vctk/freevc24", progress_bar=False) +tts.model.to("cuda:2") +tts.voice_conversion_to_file(source_wav="_t1_source.wav", target_wav="_t1_target.wav", file_path="_t1.wav")