young space engineer's blog

Random guy put into some interesting environment.

Thursday, June 29, 2006

Webster.com + Ruby = Pronounce words from command line

Ruby is cool! Try my first ruby script. Put it e.g. in /usr/local/bin and use it like this:

$ say poignant

Put whatever english word you like as an argument. Sript extracts link to an audio pronounciation file from webster.com and plays it using mplayer. Enjoy : )

0 Comments:

Post a Comment

<< Home