Open karastoyanov opened 1 year ago
Another solution for Linux based operating systems is to install the espeak
package and set it as value to the pyttsx
engine.
engine = pyttsx3.init("espeak")
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[2].id)
pyttsx3 throws a random error when trying to execute the engine. The issue is reproduced only under Linux based OS
Current solution is to uninstall the python library, install it again and set
dummy
as engineFor Windows users, if you get
engine.init()
error try to change the engine tosapi5
Reference from official docs: