-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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] TypeError: 'NoneType' object is not subscriptable #3019
Comments
Of course, I understand that I'm stupid and could mess up in the code, but I took the simplest and default example |
Hi, I have the exact same problem, i'm on Windows too. As i was looking for a solution i notice the problem seems to came from the list (tts.model, tts.speakers and tts.language) that are empty (none). For instance i was able to make Coqui working with :
@bropines : if you want to test xtts with this script you can download a youtube video as wav and with one person speaking, the results are clearely not amazing, but at least it validate that the model is working with your setup. For now i'm trying to check if i can pass direct value instead, like in this script but i didn't find any list of speakers or languages at the moment. Let me know if someone find a workaround or if there is something to do. :) |
The latest commit 4033db5 added a new voice model without updating the examples. It appears that this change will skip the new model and point you to the old one that has those features implemented. Ran into the same problem getting started and went diving into the code. Looks like a lot of models are inconsistent in a couple ways. This new one and a few others seem to not have I assume the fix will be to implement it in the new model instead of just changing the documentation. |
I just need to voice a conditional srt file and I just wanted to push in a model, but I don’t even understand which one would be suitable for this and how to use everything |
Im getting the same error for this code
Error I would like to use the XTTS model which i think located at |
Then read the docs https://tts.readthedocs.io/en/dev/models/xtts.html Also yes that should be the correct index. |
Describe the bug
Traceback (most recent call last):
File "G:\TTS\script.py", line 15, in
tts.tts_to_file(text="Hello world!", speaker=tts.speakers[0], language=tts.languages[0], file_path="output.wav")
TypeError: 'NoneType' object is not subscriptable
To Reproduce
I took an example from the readme
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: