#! /bin/sh
##
## $Id: vboxplay,v 1.2 1996/07/25 12:34:02 root Exp $
##
## *Sample* command to play voice messages. The script use the pfvtools
## from the mgetty-0.99 package and the network audio server (NAS). You
## also can use the rmdtools (included in the vbox package) and play to
## /dev/audio.
##
## Make sure that all needed programs are in the search path!
##
## Usage: vboxplay SAMPLENAME VOLUME

PATH="${PATH}:/usr/local/lib/vbox:/usr/local/lib/pvftools"

SAMPLE=${1}
VOLUME=${2}

rmdgetheader ${SAMPLE}

case $? in

   2 | 3 | 4) zyxeltopvf <${SAMPLE} | pvfamp ${VOLUME} | pvfcut 0.20 | pvftoau 8000 | auplay;
              ;;
       5 | 6) auplay ${SAMPLE};
              ;;
esac
