Skip to content

Commit

Permalink
Add voice conversion functionality to _t1.py
Browse files Browse the repository at this point in the history
  • Loading branch information
isatyamks committed Sep 23, 2024
1 parent dbf1a08 commit ec922bc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions python _t1.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit ec922bc

Please sign in to comment.