Created
October 3, 2012 16:23
-
-
Save codito/3828024 to your computer and use it in GitHub Desktop.
GRE Word Call
This file contains 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/bash | |
# Script to speak out GRE words, turn it on and sleep ;) | |
# Get wordlist from http://pastebin.com/JLQs9MT2 | |
#espeakcmd="espeak -g 1 -s 170 -a 150 -p 10 -v english-us" | |
espeakcmd="festival --tts" | |
shuf GREwordlist.txt | while read line | |
do | |
word=`echo $line | cut -f 1 -d " " -` | |
meaning=`echo $line | cut -f 2- -d " " -` | |
echo "word = $word" | `$espeakcmd` | |
cnt=${#word} | |
ww="" | |
for ((i=0; i < cnt; i++)) | |
do | |
ww="$ww${word:$i:1}"" " | |
#echo ${word:$i:1} | `$espeakcmd` | |
done | |
echo $ww | `$espeakcmd` | |
sleep 1 | |
echo "= "$ww | `$espeakcmd` | |
sleep 1 | |
echo "meaning = $meaning" | `$espeakcmd` | |
sleep 3 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment