Skip to content

Instantly share code, notes, and snippets.

@melissaboiko
Last active December 18, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melissaboiko/5853628 to your computer and use it in GitHub Desktop.
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
#!/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