Command Line Text To Speech

Open up the terminal (Applications -> Utilities -> Terminal) and type:

say MacTips.org Rocks!

As you can see this is an extremely easy way to convert text to speech. You can also have the computer say something after completing a command to notify you when the command has been completed.

For example:

ls *.jpg; say finished listing jpeg images

Terminal-Say-1

You can also speak the contents of a file by using the -f switch:

say -f text_file

You can also specify different voices by using the -v switch:

say -v Ralph Hi, my name is Ralph

There’s a whole list of available voices in the Text to Speech preferences (System Preferences -> Speech -> Text to Speech -> System Voice).

Technorati Tags:

Similar Posts:

I Like This Tip!


3 Responses to “Command Line Text To Speech”


  1. Trackback
    iHeartApple » » MacTips - Mac Tips and Tricks

    [...] For example, open up Terminal and type this - say iHeartApple kicks ass, be-yahtch [...]


  2. Also, try piping other commands to the say command such as: ls | say. This will speak the output of the commands.

  3. JubbaG,

    I didn't know that, thanks!

    - Brad

Post a comment to "Command Line Text To Speech"



MacTips Newsletter


Twitter MacTips

  • Stay up to date with the latest Mac tips, tricks and news by following us on twitter: MacintoshTips.

AppleGazette Headlines

Most Popular Tips (30 Days)

Most Commented (30 Days)

Good Tips

Recent Discussions

MacTips Poll

What level of tips would you like to see?

View Results

Loading ... Loading ...

Friends of MacTips

Subscribe to MacTips

Site Links