Skip to content

Instantly share code, notes, and snippets.

@io41
Forked from anonymous/tts.fish
Created September 19, 2013 15:25
Show Gist options
  • Save io41/6625169 to your computer and use it in GitHub Desktop.
Save io41/6625169 to your computer and use it in GitHub Desktop.
function tts
set q $argv;
mplayer "http://translate.google.com/translate_tts?ie=UTF-8&q=$q&tl=en&textlen="(math (echo "$q" | wc -m) - 1)"idx=0&total=1&prev=input";
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment