Add voice conversion functionality to _t1.py

This commit is contained in:
isatyamks 2024-09-23 19:09:36 +05:30
parent dbf1a08a0d
commit ec922bc26e
1 changed files with 12 additions and 0 deletions

12
python _t1.py Normal file
View File

@ -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")