Getting list of Mac text-to-speech voices programmatically?

Mark Harrison picture Mark Harrison · Sep 29, 2009 · Viewed 16.6k times · Source

The mac command say can specify the voice used with the -v flag.

say -v Alex "compile completed, put your swords down."

The available voices can be seen in System Preferences/Speech/Text to Speech. How can I get this list programmatically?

Answer

Igor Shubovych picture Igor Shubovych · Feb 21, 2013

This is the list of available voices:

say -v '?'