Open egorgam opened 1 year ago
I have the exact same issue.. but unfortunately your fix does not seem to work.
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 😅
Ive found an actual fix instead of a workaround here: https://github.com/nateshmbhat/pyttsx3/pull/271
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.