#!/bin/bash # takes m n-second voice samples # k2.wav ... km.wav where k is an identifier # syntax is ./getsound n m k echo echo "Sleeping 5 seconds until starting recording" sleep 5 # get the samples for i in `seq 1 $2`; do sound-recorder -c 1 -A /dev/dsp1 -S 00:$1 -f wav ${3}${i}.wav done