Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More informative error for wrong --language argument #3294

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

eginhard
Copy link
Contributor

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

…ment

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 coqui-ai#3270, fixes coqui-ai#3291
@erogol erogol merged commit 4a2684b into coqui-ai:dev Nov 24, 2023
53 checks passed
@eginhard eginhard deleted the check-args branch March 30, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants