#!/bin/sh # test-mic - A simple script to test the microphone arecord -d 3 /tmp/test-mic.wav trap 'rm /tmp/test-mic.wav' EXIT aplay /tmp/test-mic.wav