Yourtts: AssertionError: [!] There are duplicate characters in the character set. {' ', ')', ';', '.', "'", '!', ':', '-', '(', ',', '?'} #4279
-
I'm encountering an AssertionError: [!] There are duplicate characters in the character set. when trying to load a YourTTS model (specifically from tts_models--multilingual--multi-dataset--your_tts) locally using TTS.config.load_config followed by TTS.tts.models.setup_model. The error originates in the TTS.tts.utils.text.characters.Graphemes class during vocabulary creation. CoquiTTS version:0.22.0 The config.json (which I believe is the official one downloaded with the model) contains the following relevant sections: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Can you try this with our fork, available via from TTS.api import TTS
tts = TTS("tts_models/multilingual/multi-dataset/your_tts")
_ = tts.tts("this is a test.", speaker="female-en-5", language="en") If it still doesn't work, can you share the exact code you're running and the full error message? |
Beta Was this translation helpful? Give feedback.
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: