summaryrefslogtreecommitdiff
path: root/testmic.sh
blob: 99acea0dbd851bf0d209f3ff6420345bc2ee32ef (plain)
1
2
3
4
5
6
7
8
9
#!/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
}