Test synthesize.py with diffent arguments.
()
| 4 | |
| 5 | |
| 6 | def 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 | ) |
nothing calls this directly
no test coverage detected
searching dependent graphs…