MCPcopy
hub / github.com/coqui-ai/TTS / test_synthesize

Function test_synthesize

tests/inference_tests/test_synthesize.py:6–20  ·  view source on GitHub ↗

Test synthesize.py with diffent arguments.

()

Source from the content-addressed store, hash-verified

4
5
6def test_synthesize():
7 """Test synthesize.py with diffent arguments."""
8 output_path = os.path.join(get_tests_output_path(), "output.wav")
9 run_cli("tts --list_models")
10
11 # single speaker model
12 run_cli(f'tts --text "This is an example." --out_path "{output_path}"')
13 run_cli(
14 "tts --model_name tts_models/en/ljspeech/glow-tts " f'--text "This is an example." --out_path "{output_path}"'
15 )
16 run_cli(
17 "tts --model_name tts_models/en/ljspeech/glow-tts "
18 "--vocoder_name vocoder_models/en/ljspeech/multiband-melgan "
19 f'--text "This is an example." --out_path "{output_path}"'
20 )

Callers

nothing calls this directly

Calls 2

get_tests_output_pathFunction · 0.90
run_cliFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…