mirror of
https://github.com/wassname/TTS.git
synced 2026-10-28 12:41:20 +08:00
Add voice conversion api tes
This commit is contained in:
1 parent
a49c1931d9
commit
209f0a509a
1 file changed
+8
@@ -93,3 +93,11 @@ class TTSTest(unittest.TestCase):
|
||||
tts = TTS()
|
||||
tts.load_tts_model_by_name("tts_models/multilingual/multi-dataset/your_tts")
|
||||
tts.tts_to_file("Hello world!", speaker_wav=cloning_test_wav_path, language="en", file_path=OUTPUT_PATH)
|
||||
|
||||
def test_voice_conversion(self): # pylint: disable=no-self-use
|
||||
tts = TTS(model_name="voice_conversion_models/multilingual/vctk/freevc24", progress_bar=False, gpu=False)
|
||||
tts.voice_conversion_to_file(
|
||||
source_wav=cloning_test_wav_path,
|
||||
target_wav=cloning_test_wav_path,
|
||||
file_path=OUTPUT_PATH,
|
||||
)
|
||||
Reference in new issue
Block a user