Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 787
Mark Harrison Avatar asked Sep 28 '09 23:09

Mark Harrison


People also ask

Where are macOS voices stored?

If you are wondering where the audio files of your Apple Voice Memos are, in case you want to browse through them, see their file sizes, or copy or remove them, they are located in the com. apple. voicememos folder inside of ~/Library/Application Support . That's the Library folder inside of your macOS username.

How do I change the voice of text to speech on a Mac?

On your Mac, choose Apple menu > System Preferences, click Accessibility , then click Spoken Content. Click the System Voice pop-up menu, then choose a voice. To adjust how fast the voice speaks, drag the Speaking Rate slider.


1 Answers

This is the list of available voices:

say -v '?' 
like image 76
Igor Shubovych Avatar answered Oct 10 '22 18:10

Igor Shubovych