I have recently look into using Pyttsx in Python 2.7 for a project I'm doing, but after it has finished speaking the program hangs and won't continue.
Here is my code:
import pyttsx
engine = pyttsx.init()
engine.say("Hello world.")
engine.runAndWait()
After running engine.runAndWait(), it doesn't run anything else and hangs without returning anything. I tried adding a print afterwards, but it didn't print anything.
Is this common for anyone else, and is there a fix for this? If not then is there a good alternative? (Aside from Google TTS)
Thanks!
---------EXTRA-------- I use a Macbook Pro with OS X El Capitan 10.11.4