summaryrefslogtreecommitdiff
path: root/testmic.sh
diff options
context:
space:
mode:
authoryctct <yctct@yctct.com>2025-12-19 09:52:57 +0100
committeryctct <yctct@yctct.com>2025-12-19 09:52:57 +0100
commitdd162f3709af08e3c2a48eea9002fa274b76d219 (patch)
treeeeed7826464dad43c9cd30fccf0cb8540d495ba3 /testmic.sh
parent8672c12a91d5862042ba47093733ea9f82e94e0f (diff)
Add script to test microphone
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
+}