Skip to content

Instantly share code, notes, and snippets.

@jgrevich
Created February 24, 2016 05:45
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 jgrevich/cc88b135de9824112911 to your computer and use it in GitHub Desktop.
Save jgrevich/cc88b135de9824112911 to your computer and use it in GitHub Desktop.
#!/bin/bash
FILENAME="/home/pi/.tap/`/bin/date +\%Y.\%m.\%d.\%H00.\%Z`"
/bin/echo 'Recording at: ' $FILENAME &>> $FILENAME.log
/usr/bin/arecord -Dhw:1 -vvvv -f dat -d 3597 -R 2000 2>> $FILENAME.log | lame --verbose --preset extreme -r -s 48 - $FILENAME.mp3 &>> $FILENAME.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment