problems mit pvf
Daniel Doering (daniel@greenie.muc.de)
Mon, 14 Dec 1998 19:07:08 +0100
) The following script is a work-around on the problem. It basically
) merges the two channels first before going pvftools.
As I do not have the "sox" program I checked with a short mono wav file
that came as sample with my linux distribution.
) NB: Also checked with SPEED=9600. Depending on your ZyXEL firmware
) 11025 doesn't work.
I skippd the sox step in the script. One of the problems I now understand
was that pvftormd expects that the pvf input already has a sampling rate
that the specific modem supports (in this case 9600)
) SOX=~/ported/sox10p11/sox
) PVFTOOLS=/usr/lib/mgetty/pvftools/
) SPEED=9600
)
) FNAME=$1
) TMP_FNAME=/tmp/convert_$$
)
) # Merge into one channel (maybe that could be done merged)
# donīt try to do this ... there is no sox on my system
# $SOX -t wav $FNAME -t wav -c 1 $TMP_FNAME
$PVFTOOLS/wavtopvf < $FNAME | $PVFTOOLS/pvfspeed -s $SPEED | \
$PVFTOOLS/pvftormd ZyXEL_1496 3 > $FNAME.rmd
-----------
I just went to the next phone box to check.... and it works :-)
_______________________
Yield to temptation. It may not pass your way again.
Daniel Doering, Muenchen * daniel@ommm.greenie.muc.de
http://greenie.muc.de/~daniel/
---------------