#!/usr/bin/env bash # command to test whether microphone is working # add -v to see continuous input # alternative: # arecord -vv -fdat foo.wav to save output to a file test-microphone() { arecord -vv -f dat /dev/null }