#! /bin/sh # convert .wav file to fbox music-on-hold if [ "$1" = "-p" ] # 1 second pause then shift head='\252\253\252\252\c' else head='\253\253\252\252\c' fi ( /bin/echo -e $head ; sox $1 -c 1 -t la -r 8000 - ) > $2