Bark is too big to run on github actions. We need to test it locally
()
| 225 | |
| 226 | |
| 227 | def test_bark(): |
| 228 | """Bark is too big to run on github actions. We need to test it locally""" |
| 229 | output_path = os.path.join(get_tests_output_path(), "output.wav") |
| 230 | use_gpu = torch.cuda.is_available() |
| 231 | if use_gpu: |
| 232 | run_cli( |
| 233 | f" tts --model_name tts_models/multilingual/multi-dataset/bark " |
| 234 | f'--text "This is an example." --out_path "{output_path}" --progress_bar False --use_cuda True' |
| 235 | ) |
| 236 | else: |
| 237 | run_cli( |
| 238 | f" tts --model_name tts_models/multilingual/multi-dataset/bark " |
| 239 | f'--text "This is an example." --out_path "{output_path}" --progress_bar False' |
| 240 | ) |
| 241 | |
| 242 | |
| 243 | def test_voice_conversion(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…