Google's Text-To-Speech in command line

function say { wget -q -U Mozilla -O google-tts.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=$1&q=$2" open google-tts.mp3 &>/dev/null || mplayer google-tts.mp3 &>/dev/null; rm google-tts.mp3; }
Improved google text-to-speech function. Allows to specify language, plays sound in terminal. Automatically removes downloaded file after successfully processing. Usage: say LANGUAGE TEXT Examples: say en "This is a test." say pl "To jest test"

2
By: Zath
2014-08-01 23:43:16

1 Alternatives + Submit Alt

What Others Think

Here this is a post to that is exclusively useful for those people who are working in the IT field especially the programming development field. I feel really thankful for the admin for sharing these kinds of useful topics over here. Keep updating this type of posters more for getting information real estate photography editing
leonamargret · 53 weeks and 2 days ago
"Welcome to We Buy Houses Colorado Springs, the Official Cash Home Buyer of Colorado Springs, Colorado, and surrounding areas. We provide home sellers with a cash option to purchase their property quickly—with NO Repairs, and NO Fees or Commissions. Simply go to our website or call us at (719) 300-6335 to get a no-obligation cash home offer sent to you. It’s free and confidential. foreclosure? Facing divorce? Moving? Upside down in your mortgage? Liens? It doesn’t matter whether you live in it, you’re renting it out, it’s vacant, or not even habitable. We help owners who have inherited an unwanted property, own a vacant house, are behind on payments, owe liens, downsized, and can’t sell… even if the house needs repairs that you can’t pay for… and yes, even if the house is fire damaged or has bad rental tenants. Basically, if you have a property and need to sell it… we’d like to make you a fair cash offer and close on it when you’re ready to sell. Just contact us today to get started!
WeBuyHouses · 35 weeks and 3 days ago
What do I need to know when making an inheritance? What problems can arise when making a will? How do I get Probate Advance? And many other questions each of us needs to know.
ScarlettReid · 19 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: