How To Make OS X “Say” Things
By Daniel Miessler on March 16th, 2006: Tagged as Apple | Programming
I was doing some bash autocomplete on various two letter combinations while thinking of a name for a tool I’m writing and came across an awesome little tidbit I’ve never read about anywhere.
If you go to the command line in OS X and type:
say foo
…it’ll literally invoke the computer’s voice and “say” what you gave it as an argument (in this case it’ll actually say, “Foo”). Very cool stuff; I’ll be tinkering with this as of immediately. Imagine finishing a backup and having it audibly tell you, “Backup complete.”, or tracking the progress of a tool that takes a while. If you do this, for example:
say 10%
…it’ll actually say, “Ten percent.”
I’m imagining all sorts of mostly useless but very cool applications for this in custom programs. Enjoy.: – Edit: Oh, and yes, you can make it use … “non-standard” language. I just made it say, “You are an asshat.” It’s quite rich. And it’s even got the main George Carlin seven in there too. For bonus points you can make it say, “Your father is a hamster and your mother smells of elderberries.” Yes, much more fun than it should be.
--

First congratulations on the new job. Talked to brad and he told me. Second i award you 100 cool points for having it quote monty python. You could have been awarded 102 cool points if you had used a quote from the princess bride instead.
Comment by Dennis — 3/16/2006 @ 12:05 pm
You say “new” job, when I’ve been here for a year. I don’t think it means what you think it means.
Comment by Daniel — 3/16/2006 @ 2:25 pm
I was just going with what brad told me…If not new job or new position. well…congratulations anyway for nothing other than just getting a new car. :-)
Comment by Dennis — 3/16/2006 @ 2:41 pm
awesome! now how can i control the volume from the terminal?
Comment by a longtime reader — 3/16/2006 @ 3:30 pm