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