This is for Mac OS X only, sorry folks.
I saw the funny command line interface to speech at Nerdlogger. Try this to play some tunes:
say -v Cellos "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo"
If you are brave enough, copy’n'paste the snippet below, replace USER and PASSWORD with your twitter account and it will read out loud the latest tweets of your friends.
curl -s -u user:password http://twitter.com/statuses/friends_timeline.xml | grep "<text>\|<screen_name>" | sed -e 's/ä/ä/' -e 's/ö/ö/' -e 's/ü/ü/' -e 's/<text>\(.*\)<\/text>/\1 from /' -e 's/<screen_name>\(.*\)<\/screen_name>/\1. . . . /' | say
Still a one liner

5 responses so far ↓
1 sma // Jun 29, 2008 at 19:26
cool… my favorite is the “silly song”
2 Dave // Jul 1, 2008 at 04:49
Why MAC only? Isn’t there a a curl pgm clone for windows too?
3 Alex // Jul 1, 2008 at 07:21
Hi Dave,
yes, there is a curl for Windows, but there is no ’say’ for windows. At least not built-in. What do you mean with ‘pgm’?
Cheers,
Alex
4 Dave // Jul 2, 2008 at 08:19
Oh I see. I don’t use curl much so thanks for the information.
Sorry, pgm = program.
I hope to get a MC soon so will try this idea out.
Thanks..Dave
5 BackEnd Blog » Blog Archive » Haz hablar a tu twitter // Mar 16, 2009 at 17:22
[...] Una prueba divertida a hacer si utilizas Mac OS X y Twitter. En la terminal, usa este comando y sustituye “user” y “password” por tus datos de cuenta twitter. Preparate para oir tus feeds!curl -s -u user:password http://twitter.com/statuses/friends_timeline.xml | grep “<text>|<screen_name>” | sed -e ’s/ä/ä/’ -e ’s/ö/ö/’ -e ’s/ü/ü/’ -e ’s/<text>(.*)</text>/1 from /’ -e ’s/<screen_name>(.*)</screen_name>/1. . . . /’ | say Quieres cantar? prueba esto:osascript -e ’say “Dum dum dee dum dum dum dum dee Dum dum dee dum dum dum dum dee dum dee dum dum dum de dum dum dum dee dum dee dum dum dee dummmmmmmmmmmmmmmmm” using “Pipe Organ”‘ Via | Tinkerlog [...]
Leave a Comment