From 209f0a509a4f7ed2f99cf991220ba5d175d5fb4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Mon, 10 Apr 2023 13:37:47 +0200 Subject: [PATCH] Add voice conversion api tes --- tests/inference_tests/test_python_api.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/inference_tests/test_python_api.py b/tests/inference_tests/test_python_api.py index dbfca837e7..b9c0fcb35b 100644 --- a/tests/inference_tests/test_python_api.py +++ b/tests/inference_tests/test_python_api.py @@ -93,3 +93,11 @@ def test_voice_cloning(self): # pylint: disable=no-self-use 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, + )