summaryrefslogtreecommitdiff
path: root/testmic.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testmic.sh')
-rwxr-xr-xtestmic.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/testmic.sh b/testmic.sh
new file mode 100755
index 0000000..ab95f82
--- /dev/null
+++ b/testmic.sh
@@ -0,0 +1,9 @@
+#!/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
+}