Skip to content

Yourtts: AssertionError: [!] There are duplicate characters in the character set. {' ', ')', ';', '.', "'", '!', ':', '-', '(', ',', '?'} #4279

Answered by eginhard
suyi00516 asked this question in General Q&A
Discussion options

You must be logged in to vote

Ok, I think you get this error because you're using an older version of the model and config. YourTTS shouldn't actually trigger this duplicate check at all. You can use the API to automatically download the correct model or find the up-to-date URLs here: https://github.com/idiap/coqui-ai-TTS/blob/97e4deb58c86dfa222e90af36cf9f2d88dfbcf17/TTS/.models.json#L38

Note that you can still use the API to handle the model loading for you, you can then access the underlying model like this:

from TTS.api import TTS
tts = TTS("tts_models/multilingual/multi-dataset/your_tts")
# or: tts = TTS(model_path="...", config_path="...")
model = tts.synthesizer.tts_model

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@suyi00516
Comment options

@eginhard
Comment options

Answer selected by suyi00516
@suyi00516
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants