#!/bin/sh # # Sample VAD start recording script ... # # $Id: vad_start.sh,v 1.1.1.1 2011/07/05 23:43:00 misho Exp $ # FMT="mp3" CHAN="1" BITRATE="8k" SAMPLERATE="12000" if [ -z $1 ]; then echo "Sound device not found ..." exit 1 fi if [ -z $2 ]; then echo "Encoding file not found ..." exit 1 fi ffmpeg -vn -f oss -i $1 -y -f $FMT -ab $BITRATE -ar $SAMPLERATE -ac $CHAN $2