mirror of https://github.com/coqui-ai/TTS.git
Prevent running bark test on CI
This commit is contained in:
parent
f6fa1dbc9f
commit
4786548287
|
@ -15,7 +15,7 @@ def run_models(offset=0, step=1):
|
||||||
print(" > Run synthesizer with all the models.")
|
print(" > Run synthesizer with all the models.")
|
||||||
output_path = os.path.join(get_tests_output_path(), "output.wav")
|
output_path = os.path.join(get_tests_output_path(), "output.wav")
|
||||||
manager = ModelManager(output_prefix=get_tests_output_path(), progress_bar=False)
|
manager = ModelManager(output_prefix=get_tests_output_path(), progress_bar=False)
|
||||||
model_names = manager.list_models()
|
model_names = [name for name in manager.list_models() if "bark" not in name]
|
||||||
for model_name in model_names[offset::step]:
|
for model_name in model_names[offset::step]:
|
||||||
print(f"\n > Run - {model_name}")
|
print(f"\n > Run - {model_name}")
|
||||||
model_path, _, _ = manager.download_model(model_name)
|
model_path, _, _ = manager.download_model(model_name)
|
||||||
|
@ -79,6 +79,15 @@ def test_models_offset_2_step_3():
|
||||||
run_models(offset=2, step=3)
|
run_models(offset=2, step=3)
|
||||||
|
|
||||||
|
|
||||||
|
def test_bark():
|
||||||
|
"""Bark is too big to run on github actions. We need to test it locally"""
|
||||||
|
output_path = os.path.join(get_tests_output_path(), "output.wav")
|
||||||
|
run_cli(
|
||||||
|
f" tts --model_name tts_models/multilingual/multi-dataset/bark "
|
||||||
|
f'--text "This is an example." --out_path "{output_path}" --progress_bar False'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_voice_conversion():
|
def test_voice_conversion():
|
||||||
print(" > Run voice conversion inference using YourTTS model.")
|
print(" > Run voice conversion inference using YourTTS model.")
|
||||||
model_name = "tts_models/multilingual/multi-dataset/your_tts"
|
model_name = "tts_models/multilingual/multi-dataset/your_tts"
|
||||||
|
|
Loading…
Reference in New Issue