From 1652598a33a754c4a42071c5e82d9f2079d782d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Mon, 24 Jul 2023 12:38:20 +0200 Subject: [PATCH] Test synthesize api separately --- tests/api_tests/test_synthesize_api.py | 15 +++++++++++++++ tests/inference_tests/test_synthesize.py | 7 ------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 tests/api_tests/test_synthesize_api.py diff --git a/tests/api_tests/test_synthesize_api.py b/tests/api_tests/test_synthesize_api.py new file mode 100644 index 00000000..6e1f013c --- /dev/null +++ b/tests/api_tests/test_synthesize_api.py @@ -0,0 +1,15 @@ +import os + +from tests import get_tests_output_path, run_cli + + +def test_synthesize(): + """Test synthesize.py with diffent arguments.""" + output_path = os.path.join(get_tests_output_path(), "output.wav") + + # 🐸 Coqui studio model + run_cli( + 'tts --model_name "coqui_studio/en/Torcull Diarmuid/coqui_studio" ' + '--text "This is it" ' + f'--out_path "{output_path}"' + ) \ No newline at end of file diff --git a/tests/inference_tests/test_synthesize.py b/tests/inference_tests/test_synthesize.py index 4bf751a5..28a4088c 100644 --- a/tests/inference_tests/test_synthesize.py +++ b/tests/inference_tests/test_synthesize.py @@ -18,10 +18,3 @@ def test_synthesize(): "--vocoder_name vocoder_models/en/ljspeech/multiband-melgan " f'--text "This is an example." --out_path "{output_path}"' ) - - # 🐸 Coqui studio model - run_cli( - 'tts --model_name "coqui_studio/en/Torcull Diarmuid/coqui_studio" ' - '--text "This is it" ' - f'--out_path "{output_path}"' - )