OS X Say Command on Linux

Posted 28 Nov 2010 to linux, os x and has Comments

So all the cool cats on Macs think they’re the only ones who can make their computers talk with the say command. Now, Linux users too can have this power using an unpublished Google tranlsate API call. Just put this in your .bashrc file:

function say { mplayer -really-quiet "http://translate.google.com/translate_tts?tl=en&q=$1"; }

Then, it’s easy as pie to make your computer talk:

say "Linux users do not have to pay lots of money to make their computers do cool stuff"