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
Open command prompt Write:
pip uninstall pyttsx3
Then:
pip install pyttsx3==2.71
And your problem will solve.