Convert Text Files to Audio Using Mac Terminal

Text documents could be created for different useful purposes as for audio notes, tutorials, lectures, etc…..
Mac has a very powerful text to speech engine that could be accessed easily through the Terminal command line. So, here we tell you about a Terminal command “Say”, by which you can easily create audio from text file. You’ll also learn in following that in which ways you can use this command.

Step 1

Run Finder

00-convert-text-to-speech-using-terminal-on-mac

Step 2

Click on Applications and then on Utilities folder, here you will find Terminal

01-convert-text-to-speech-using-terminal-on-mac

Step 3

Run Terminal and type the following command and hit Enter.
cd ~/Desktop
This command will set the location to desktop

02-convert-text-to-speech-using-terminal-on-mac

Step 4

Say “……….”

Now type in double codes your text string with Say command as following and your Mac will read this string in loud voice
Say “trickyways digital life tips and tricks”

03-convert-text-to-speech-using-terminal-on-mac

Step 5

Say -v

You can select different voices from your Mac to read the text as Alex, Bruce, Fred, Kathy, Vicki, Victoria. So, if you want to change a voice then type the following command and press Enter.
Say -v Alex “trickyways digital life tips and tricks”

04-convert-text-to-speech-using-terminal-on-mac

Step 6

Say -f “filename.rtf”

You can also provide a text file to Mac to read, to do so, type following command in Terminal and press Enter
Say -v Alex -f “trickyways.rtf”

05-convert-text-to-speech-using-terminal-on-mac

Step 7

Say -o “audiofile.aiff” -f “textfile.rtf”

You can also provide a text file to Mac to read and save it as an audio file on your system. To do that type the following command and press Enter.
Say -v Alex -o “audio.aiff” -f “trickyways.rtf”

06-convert-text-to-speech-using-terminal-on-mac

You can apply more than one switch with the same command as we did in Step 7.

7 comments… add one

Katarina September 14, 2009, 8:32 pm

Mac terminal really works well to convert text to audio, thanks for sharing this method

Jootoo September 30, 2009, 4:25 am

I used your proposed method to convert text to audio on mac, its really easy.

fainsa October 1, 2009, 12:41 pm

Very nice way to create audio for text

Yusuf October 2, 2009, 4:36 am

Seems very easy to convert text into audio on mac just because of your provided guide

Roshnye October 18, 2009, 6:05 pm

Nice way to instruct

Shuja October 22, 2009, 7:25 am

converting text to sound files seems easy on Mac, thanks

Anaye November 27, 2009, 3:33 pm

mac works great

Leave a Reply