You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I print voices:
[<pyttsx3.voice.Voice object at 0x000001A76764EE88>, <pyttsx3.voice.Voice object at 0x000001A76781A2C8>, <pyttsx3.voice.Voice object at 0x000001A76478B108>, <pyttsx3.voice.Voice object at 0x000001A76478B148>, <pyttsx3.voice.Voice object at 0x000001A7678CDE08>]
The text was updated successfully, but these errors were encountered:
Hi,
I am facing an index error because it is producing just 5 items in "voices". Any idea of how can we fix this?
CODE:
engine = pyttsx3.init()
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[10].id)
ERROR: IndexError: list index out of range
when I print voices:
[<pyttsx3.voice.Voice object at 0x000001A76764EE88>, <pyttsx3.voice.Voice object at 0x000001A76781A2C8>, <pyttsx3.voice.Voice object at 0x000001A76478B108>, <pyttsx3.voice.Voice object at 0x000001A76478B148>, <pyttsx3.voice.Voice object at 0x000001A7678CDE08>]
The text was updated successfully, but these errors were encountered: