XTTS is too big to run on github actions. We need to test it locally
()
| 75 | |
| 76 | |
| 77 | def test_xtts(): |
| 78 | """XTTS is too big to run on github actions. We need to test it locally""" |
| 79 | output_path = os.path.join(get_tests_output_path(), "output.wav") |
| 80 | speaker_wav = os.path.join(get_tests_data_path(), "ljspeech", "wavs", "LJ001-0001.wav") |
| 81 | use_gpu = torch.cuda.is_available() |
| 82 | if use_gpu: |
| 83 | run_cli( |
| 84 | "yes | " |
| 85 | f"tts --model_name tts_models/multilingual/multi-dataset/xtts_v1.1 " |
| 86 | f'--text "This is an example." --out_path "{output_path}" --progress_bar False --use_cuda True ' |
| 87 | f'--speaker_wav "{speaker_wav}" --language_idx "en"' |
| 88 | ) |
| 89 | else: |
| 90 | run_cli( |
| 91 | "yes | " |
| 92 | f"tts --model_name tts_models/multilingual/multi-dataset/xtts_v1.1 " |
| 93 | f'--text "This is an example." --out_path "{output_path}" --progress_bar False ' |
| 94 | f'--speaker_wav "{speaker_wav}" --language_idx "en"' |
| 95 | ) |
| 96 | |
| 97 | |
| 98 | def test_xtts_streaming(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…