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

Function test_bark

tests/zoo_tests/test_models.py:227–240  ·  view source on GitHub ↗

Bark is too big to run on github actions. We need to test it locally

()

Source from the content-addressed store, hash-verified

225
226
227def 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
243def test_voice_conversion():

Callers

nothing calls this directly

Calls 3

get_tests_output_pathFunction · 0.90
run_cliFunction · 0.90
is_availableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…