coqui-tts/TTS
Enno Hermann 9b2dfe0995 fix(bin.synthesize): more informative error for wrong --language argument
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
2023-11-23 16:55:16 +01:00
..
bin fix(bin.synthesize): more informative error for wrong --language argument 2023-11-23 16:55:16 +01:00
config Fix model tests (#2943) 2023-09-14 15:21:48 +02:00
encoder refactor: use save_checkpoint()/save_best_model() from Trainer 2023-11-17 01:18:23 +01:00
server Make style 2023-08-11 12:55:23 +02:00
tts Ensures that only GPT model is in training mode during XTTS GPT training (#3241) 2023-11-17 15:15:22 +01:00
utils refactor: use copy_model_files() from Trainer 2023-11-17 01:18:23 +01:00
vc PyTorch 2.1 Updates (Weight Norm and TorchAudio I/O) (#3176) 2023-11-09 16:31:03 +01:00
vocoder Ensures that only GPT model is in training mode during XTTS GPT training (#3241) 2023-11-17 15:15:22 +01:00
.models.json Update model hash for v2.0.2 2023-11-17 15:16:32 +01:00
VERSION Update to v0.20.6 2023-11-17 15:16:32 +01:00
__init__.py Use `coqui_tts` as the default run name 2021-08-30 12:56:47 +00:00
api.py Fix coqui api (#3168) 2023-11-08 10:51:23 +01:00
cs_api.py Make style 2023-11-13 13:01:01 +01:00
model.py Cache fsspec downloads (#2132) 2022-11-09 22:12:48 +01:00