1 #!/bin/sh 2 3 SOX=`which sox` 4 HSTEST=`which hstest` 5 6 if [ -z "$HSTEST" ] 7 then 8 HSTEST="./hstest" 9 fi 10 11 if [ -z "$1" ] 12 then 13 echo -e "Usage:\n\thsmicro <bdaddr> [channel]" 14 exit 15 fi 16 17 BDADDR=$1 18 CHANNEL=$2 19 20 $HSTEST record - $BDADDR $CHANNEL | $SOX -t raw -r 8000 -c 1 -s -w - -t ossdsp -r 44100 -c 2 -s -w /dev/dsp polyphase vol 5.0 2> /dev/null 21