Skip to content

Commit

Permalink
Add voice conversion api tes
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol committed Apr 10, 2023
1 parent a49c193 commit 209f0a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/inference_tests/test_python_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit 209f0a5

Please sign in to comment.