Created
January 27, 2015 21:02
-
-
Save markx/85fc615326ffe44d5463 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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