I'm looking for a way to change the voice with a shortcut: going in to settings->accessibility->Speech and setting the voice "Alex" take's to long.
Does anyone know a terminal command? Or a way to change it with a keyboard shortcut?
I use speech in English and in Dutch so i have to manually change the voice a couple of times a day. thx
Have a look at https://github.com/mklement0/voices. Voices is a command line tool for changing the default text-to-speech voice. But the author of the tool warns that:
As of macOS 10.12 (Sierra), there is no documented programmatic way to change the default voice. Thus, this utility makes use of undocumented system internals, which, unfortunately, means that future compatibility of this feature is uncertain.
But at the moment, it seems to work with the latest Sierra version.
In addition, the author also provides links to alternatives, like:
If you have Alfred with its Power Pack, consider workflow speak.awf as a superior alternative.