New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runAndWait hangs on OSX High Sierra #22
Comments
I'm not 100% sure it is your exact problem, but you may need a newer version of pyobjc. At least that fixes it for me. |
Thanks for the comment, I have installed latest pyobjc, version 4.2.2, but that did not solve the issue. |
I've got the same error using the latest versions of both. |
Same. |
same |
2 similar comments
same |
same |
Anyone fixed it or have other solution ? |
I finally ended up using this in a product I work on OSX. I ended up using multiprocessing. Whenever a say is stopped, we kill the process. Also we freeze it using PyInstaller and had to run multiprocessing.freeze_support() and multiprocessing.set_start_method('forkserver') I can't remember if the forkserver was required even without freezing (probably is). In anycase it seems to run reliably after doing all that. We use multiprocessing queue to communicate back and forth to the process started with multiprocessing. The queue is used to send word event info back to the main process, and to to tell the tts process what to say from the main process. |
Is this still happening? This was a very old issue. Closing this until any furthur activity. |
yep, happening again |
I searched quite a bit for an answer to this problem, to no avail. While running pyttsx3 on a Mac running OSX High Sierra, the script hangs (or never exits) the runAndWait() command. I found a few suggestions as to how to solve this issue (run it in a function or Class), neither of which worked for me.
Is this an active bug that is on a path to being fixed? Is there a library that needs updating? Any ideas as to how to get it to exit normally?
Thanks,
The text was updated successfully, but these errors were encountered: