Last active
December 18, 2015 22:19
-
-
Save melissaboiko/5853628 to your computer and use it in GitHub Desktop.
script for language learners to record and listen their own voice while studying
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 | |
# apt-get install sox | |
unset ans | |
tmp=$(mktemp).wav | |
while true; do | |
echo -n "Enter to start recording (Ctrl+C to finish), p to play again, q to quit... " | |
read ans | |
case "$ans" in | |
p) play $tmp;; | |
q) break;; | |
*) rec $tmp; play $tmp;; | |
esac | |
done | |
rm $tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment