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

Commits on Nov 23, 2023

  1. fix(bin.synthesize): more informative error for wrong --language argu…

    …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
    eginhard committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    9b2dfe0 View commit details
    Browse the repository at this point in the history