Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- eng2audio() {
- # this function gets the mp3 version of one given string from google translate
- # reference: http://stackoverflow.com/questions/9163988/download-mp3-from-google-translate-text-to-speech
- ping -c 2 www.google.com > /dev/null || echo 'Error: not connected!' && \
- wget -q -U Mozilla -O "$*.mp3" "http://translate.google.com/translate_tts?ie=UTF-8&tl=en&q=$*"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement