From 1e9538aaef41cdca831b15240913f7e3387c88f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Sun, 4 Jul 2021 11:45:49 +0200 Subject: [PATCH] Add more model tests to `test_synthesize` --- tests/inference_tests/test_synthesize.py | 30 ++++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/inference_tests/test_synthesize.py b/tests/inference_tests/test_synthesize.py index 62eb6dbe..526f7dc8 100644 --- a/tests/inference_tests/test_synthesize.py +++ b/tests/inference_tests/test_synthesize.py @@ -10,19 +10,19 @@ def test_synthesize(): # single speaker model run_cli(f'tts --text "This is an example." --out_path "{output_path}"') - # run_cli( - # "tts --model_name tts_models/en/ljspeech/speedy-speech-wn " - # f'--text "This is an example." --out_path "{output_path}"' - # ) - # run_cli( - # "tts --model_name tts_models/en/ljspeech/speedy-speech-wn " - # "--vocoder_name vocoder_models/en/ljspeech/multiband-melgan " - # f'--text "This is an example." --out_path "{output_path}"' - # ) + run_cli( + "tts --model_name tts_models/en/ljspeech/speedy-speech-wn " + f'--text "This is an example." --out_path "{output_path}"' + ) + run_cli( + "tts --model_name tts_models/en/ljspeech/speedy-speech-wn " + "--vocoder_name vocoder_models/en/ljspeech/multiband-melgan " + f'--text "This is an example." --out_path "{output_path}"' + ) - # # multi-speaker model - # run_cli("tts --model_name tts_models/en/vctk/sc-glow-tts --list_speaker_idxs") - # run_cli( - # f'tts --model_name tts_models/en/vctk/sc-glow-tts --speaker_idx "p304" ' - # f'--text "This is an example." --out_path "{output_path}"' - # ) + # multi-speaker model + run_cli("tts --model_name tts_models/en/vctk/sc-glow-tts --list_speaker_idxs") + run_cli( + f'tts --model_name tts_models/en/vctk/sc-glow-tts --speaker_idx "p304" ' + f'--text "This is an example." --out_path "{output_path}"' + )