Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 99 20:24:22 +0200
From:      David Wetzel <dave@turbocat.de>
To:        freebsd-isdn@FreeBSD.ORG
Subject:   FAQ
Message-ID:  <199907171824.UAA00322@cat.turbocat.de>

next in thread | raw e-mail | index | archive | help
If you like, add this to the FAQ (the version i have here is  
i4b-00.81.00-beta-190599)

---
   _  _
 _(_)(_)_  David Wetzel, Turbocat's Development,
(_) __ (_) Buchhorster Strasse, D-16567 Muehlenbeck/Berlin, FRG,
  _/  \_   Fax +49 33056 82835 NeXTmail dave@turbocat.de
 (______)  http://www.turbocat.de/
           DEVELOPMENT * CONSULTING * ADMINISTRATION

How can I convert my old .g711a files to the new format?
================================================================================
I got the best results with:
cat /some/path/dwhello.g711a | alaw2ulaw | g711conv -u > /tmp/newhello.al

I have lots of old .g711a files to convert what can I do?
================================================================================

Create a shell script (/tmp/csnd.sh) with this contents:
#!/bin/sh

OLDFILES=`ls *.g711a`
#echo $OLDFILES

for THEFILE in $OLDFILES
do
(
        echo -n "converting $THEFILE..."
        BASENAME=`basename $THEFILE .g711a`

        /bin/cat $THEFILE | alaw2ulaw | g711conv -u > $BASENAME.al
        echo "done"
)

done
###### END

then type "chmod a+x /tmp/csnd.sh" in you shell.
cd /usr/local/lib/isdn (or where your old sounds live)
/tmp/csnd.sh
Optional:
rm *.g711a (you should know what you do here :-)


How can I convert the .al files to Sun/NeXT .au/.snd/.vox files?
================================================================================

/bin/cat /some/path/old.al | sox -t raw -A -b -r 8000 - -t .au /some/path/new.snd



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907171824.UAA00322>