#!/bin/sh # # ラジオ(Sound Blaster MP3+から入力される音声)を録音するスクリプト # DURATION="3600" OUTPATH="./" echo "radiorec.sh start : `date`" Title=`/bin/date +%y%m%d` Card=`/usr/bin/arecord -l | /usr/bin/gawk '$5 ~ /Blaster/ { print substr($2,0,1)}'` echo "Detect [Sound Blaster MP3+] : $Card" /usr/bin/amixer -c $Card set Line 55% unmute cap /usr/bin/arecord -D hw:$Card,0 -f cd -d $DURATION $OUTPATH/$Title.wav echo "radiorec.sh finish : `date`"