Workaround for pyttsx engine runAndWait does not return on Yosemite

The python module pyttsx is a text-to-speech module for python. Sample code

import pyttsx
engine=pyttsx.init()
engine.say("hello")
engine.say("everybody")
engine.runAndWait()

      

should receive a runAndWait call and read the words of the queue ("hello" and "all") and then return. However, in Yosemite, the runAndWait function never returns (just hangs forever) even after reading the word queue.

I'm sure this is just a Yosemite problem. Do all Mac users have a workaround for this problem? Thank you so much.

Cheers, HT

+3


source to share





All Articles