Skip to content

Instantly share code, notes, and snippets.

@markx
Created January 27, 2015 21:02
Show Gist options
  • Save markx/85fc615326ffe44d5463 to your computer and use it in GitHub Desktop.
Save markx/85fc615326ffe44d5463 to your computer and use it in GitHub Desktop.
#!/bin/sh
PLAYER="/cygdrive/d/Program?Files/SMPlayer/mplayer/mplayer.exe"
say() {
local IFS=+;
$PLAYER -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?tl=en&q=$*";
}
n=60
if [ "$#" -ge "1" ]; then
n=$*
fi
for((i=1;i<=n;i++))
do
echo "$i/$n"
say $i
# sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment