pyttsx3 icon indicating copy to clipboard operation
pyttsx3 copied to clipboard

NSSS MacOS Ventura workaround

Open egorgam opened this issue 2 years ago • 3 comments

If I trying to save TTS result to file in MacOS Ventura (on Apple Silicon CPU), pyttsx3 generating empty file with 4kb size.

I found a simple way to fix it - adding a small timeout after saving operation. Looks like engine.runAndWait() closing loop before file content is saving. Maybe a reason in Apple Silicon CPU speedup, or it's pyobj bug. However, this workaround is working, and someone can found better solution in future.

egorgam avatar Apr 01 '23 02:04 egorgam

I have the exact same issue.. but unfortunately your fix does not seem to work.

codeaye avatar Apr 08 '23 17:04 codeaye

Actually, i have checked with your fix and found that the time waited needs to grow in response to the size of text you are converting. Thus this fix wouldnt exactly work for everyone 😅

codeaye avatar Apr 08 '23 17:04 codeaye

Ive found an actual fix instead of a workaround here: https://github.com/nateshmbhat/pyttsx3/pull/271

codeaye avatar Apr 08 '23 18:04 codeaye

have merged #271 for this fix

nateshmbhat avatar Aug 15 '24 07:08 nateshmbhat