pyttsx3 #4728
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
pyttsx3 is only a thin wrapper over desktop TTS engines — SAPI5 (Windows), NSSpeechSynthesizer (macOS), and eSpeak (Linux). Android/iOS provide none of those, so For TTS in a Flet app, use the platform's native engine instead — e.g. |
Beta Was this translation helpful? Give feedback.
pyttsx3 is only a thin wrapper over desktop TTS engines — SAPI5 (Windows), NSSpeechSynthesizer (macOS), and eSpeak (Linux). Android/iOS provide none of those, so
pyttsx3.iinit()falls through to the eSpeak driver and can't load libespeak. (It's a normal catchable exception, so it won't crash your app — it just can't produce speech.)For TTS in a Flet app, use the platform's native engine instead — e.g.
android.speech.tts.TextToSpeechvia pyjnius on Android andAVSpeechSynthesizervia pyobjus on iOS (guide), or a dedicated Flet TTS plugin/extension (which doesnt yet exist to my knowledge).