
To generate a wave format output file run say "Hello World" -o out. Here is the outcome on Max OS X 10.7.5 3gp2 3GPP-2 Audio (.3g2) ģgpp 3GP Audio (.3gp) ĪIFC AIFC (.) Īdts AAC ADTS (.aac.adts) Ĭaff CAF (.caf) To see the list of output file format available run say -file-format=?. To change the output file format, just change the output file extension. There are couple of other voices which can be downloaded from Apple’s web site. Here is the default list on Mac OS X 10.7.5 at the time of writing this article. To see the list of voices available on your system run say -v ?. Voice Alex is one of the most popular voices and you can use it if you don’t want to spend too much time on trying other voices. Outcome: mac-text-to-speech-tts-demo-victoria.aiff Outcome: mac-text-to-speech-tts-demo-bruce.aiff

Outcome: mac-text-to-speech-tts-demo-alex.aiff Say -v Alex "Using Text to Speech (TTS), you can have Alex and other Mac voices speak selected text so you can hear a word as you see it onscreen." -o mac-text-to-speech-tts-demo-alex.aiff Here is sample output for text “Using Text to Speech (TTS), you can have Alex and other Mac voices speak selected text so you can hear a word as you see it onscreen.” using various voices:

This is pretty handy to generate audio file given the text. Select Voice Typing from the menu to access speech to text. Open a new document and click on the Tools tab from the top menu. Please note you will need an active Google account to use the service. It also lets to generate an audio file in various formats and voices. Follow these steps to activate Google Docs voice typing on your Mac device: Launch the Chrome browser on your macOS and select Docs from the app menu. Mac lets you convert text to speech using command line utility “say”.
