Hey,
Just FYI, I've extended this sample into a proper TTS app that I now use instead of the bad macOS speech feature.
It allows selecting text in any app and speaking it by hitting cmd-P (configurable in system services) or choosing the item in the right click menu. It also allows pasting and saving to file.
Check it out here: https://github.com/kjyv/KokoroTTS 🎉

Hey,
Just FYI, I've extended this sample into a proper TTS app that I now use instead of the bad macOS speech feature.
It allows selecting text in any app and speaking it by hitting cmd-P (configurable in system services) or choosing the item in the right click menu. It also allows pasting and saving to file.
Check it out here: https://github.com/kjyv/KokoroTTS 🎉