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