-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
[Bug] yourTTS Python API Portuguese (and French) not working #2458
Comments
The complete log of the error:
|
language code is |
Thanks @erogol! |
Running the sample code below results in an error `language_id = self.tts_model.language_manager.name_to_id[language_name]`. The fix is running the code with the correct language strings, the readme has been updated in this PR to work. I assume this small typo leads to coqui-ai#2456 and coqui-ai#2458
Describe the bug
Python API for yourTTS is not working for Portuguese (and also, it seems, French). I used the exactly same example as the given one on readme.md.
It gives me a "KeyError: 'pt'"
To Reproduce
from TTS.api import TTS
tts = TTS(model_name="tts_models/multilingual/multi-dataset/your_tts")
tts.tts_to_file("Olá, tudo bem?", speaker_wav="teste.wav", language="pt", file_path="output.wav")
Expected behavior
Generate output.wav with the standard given by speaker_wav.
Logs
KeyError: 'pt'
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: