I was having some problems when using the .getproperty(\'voices\') attribute in pyttsx3. So I decided to uninstall it and then re-install it using PIP to see if that may fix the
You need to provide a driver key argument to init. 'dummy' or 'sapi5' would work.
engine = pyttsx3.init('dummy')
or
engine = pyttsx3.init('sapi5')