Skip to content

Instantly share code, notes, and snippets.

@naholyr
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naholyr/9561ddb314b5b0a02474 to your computer and use it in GitHub Desktop.
Save naholyr/9561ddb314b5b0a02474 to your computer and use it in GitHub Desktop.
gnome-terminal --zoom=5 -e ~/bin/tts.sh
#!/bin/bash
while read line
do
wget -q -U Mozilla -O /dev/stdout \
"http://translate.google.com/translate_tts?ie=UTF-8&tl=fr&q=$line" | \
(mpg321 /dev/stdin &> /dev/null)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment