mirror of https://github.com/coqui-ai/TTS.git
In multilingual models, the target language is specified via the `--language_idx` argument. However, the `tts` CLI also accepts a `--language` argument for use with Coqui Studio, so it is easy to choose the wrong one, resulting in the following confusing error at synthesis time: ``` AssertionError: ❗ Language None is not supported. Supported languages are ['en', 'es', 'fr', 'de', 'it', 'pt', 'pl', 'tr', 'ru', 'nl', 'cs', 'ar', 'zh-cn', 'hu', 'ko', 'ja'] ``` This commit adds a better error message when `--language` is passed for a non-studio model. Fixes #3270, fixes #3291 |
||
---|---|---|
.. | ||
bin | ||
config | ||
encoder | ||
server | ||
tts | ||
utils | ||
vc | ||
vocoder | ||
.models.json | ||
VERSION | ||
__init__.py | ||
api.py | ||
cs_api.py | ||
model.py |