mirror of https://github.com/coqui-ai/TTS.git
fix .models.json and add testing to check released models availability
This commit is contained in:
parent
fd95e9b8a4
commit
f02f0338c2
|
@ -39,7 +39,6 @@ jobs:
|
||||||
sudo apt install -y python3-wheel gcc
|
sudo apt install -y python3-wheel gcc
|
||||||
make system-deps
|
make system-deps
|
||||||
- name: Upgrade pip
|
- name: Upgrade pip
|
||||||
# so we can take advantage of pyproject.toml build-dependency support
|
|
||||||
run: python3 -m pip install --upgrade pip
|
run: python3 -m pip install --upgrade pip
|
||||||
- name: Install TTS
|
- name: Install TTS
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
"author": "Eren Gölge @erogol",
|
"author": "Eren Gölge @erogol",
|
||||||
"license": "",
|
"license": "",
|
||||||
"contact":"egolge@coqui.com"
|
"contact":"egolge@coqui.com"
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"es":{
|
"es":{
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
#!/usr/bin/env python3`
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import glob
|
||||||
|
from tests import get_tests_output_path
|
||||||
|
from TTS.utils.manage import ModelManager
|
||||||
|
|
||||||
|
|
||||||
|
def test_if_all_models_available():
|
||||||
|
"""Check if all the models are downloadable."""
|
||||||
|
print(" > Checking the availability of all the models under the ModelManager.")
|
||||||
|
manager = ModelManager(output_prefix=get_tests_output_path())
|
||||||
|
model_names = manager.list_models()
|
||||||
|
for model_name in model_names:
|
||||||
|
manager.download_model(model_name)
|
||||||
|
print(f" | > OK: {model_name}")
|
||||||
|
|
||||||
|
folders = glob.glob(os.path.join(manager.output_prefix, '*'))
|
||||||
|
assert len(folders) == len(model_names)
|
||||||
|
shutil.rmtree(manager.output_prefix)
|
|
@ -1,20 +0,0 @@
|
||||||
# #!/usr/bin/env python3`
|
|
||||||
# import os
|
|
||||||
# import shutil
|
|
||||||
# import glob
|
|
||||||
# from tests import get_tests_output_path
|
|
||||||
# from TTS.utils.manage import ModelManager
|
|
||||||
|
|
||||||
|
|
||||||
# def test_if_all_models_available():
|
|
||||||
# """Check if all the models are downloadable."""
|
|
||||||
# print(" > Checking the availability of all the models under the ModelManager.")
|
|
||||||
# manager = ModelManager(output_prefix=get_tests_output_path())
|
|
||||||
# model_names = manager.list_models()
|
|
||||||
# for model_name in model_names:
|
|
||||||
# manager.download_model(model_name)
|
|
||||||
# print(f" | > OK: {model_name}")
|
|
||||||
|
|
||||||
# folders = glob.glob(os.path.join(manager.output_prefix, '*'))
|
|
||||||
# assert len(folders) == len(model_names)
|
|
||||||
# shutil.rmtree(manager.output_prefix)
|
|
Loading…
Reference in New Issue