mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
Test synthesize api separately
This commit is contained in:
@@ -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}"'
|
||||
)
|
||||
@@ -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}"'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user