This is a very useful method to record OS X text to speech into an audio file.
- Create a text file using TextEdit and write whatever you want the Mac to speak then save it as "text.txt" on your desktop.
- Open Terminal
cd ~/desktopand click Enter
say -v Alex -o "audio.aiff" -f "text.txt"being "audio.aiff" is the name of the audio output file and "text.txt" is the name of your text file saved on your desktop then click Enter
Once you click Enter the audio file will appear on your desktop.
You can change the voice with any of OS X system voices (Kathy, Vicky, Victoria, Alex, Bruce, Fred) by replacing
Alex with any of the names.
Note that even ".rtf" files can be read as well so in that case just change