Date: Fri, 22 May 1998 16:03:56 +0200 From: "Stefan Herrmann" <stefan@asterix.webaffairs.net> To: "David Wetzel" <dave@turbocat.de> Cc: <freebsd-isdn@FreeBSD.ORG> Subject: RE: i4b and telefon answering Message-ID: <000801bd858a$75eefea0$030aa8c0@obelix.webaffairs.net> In-Reply-To: <000401bd8567$e94c0140$030aa8c0@obelix.webaffairs.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi David, > > The program I use is the C-Hack in the contrib dir. [...] > After I have recorded some messages now, I would like to play them. Send it to > /dev/audio you would say. But I couldn't get my Creative Soundblaster 16 running yet > and I would like to be able to here the records on my WinNT machine too. So is > there a possibility to convert the recorded messages to WAV or VOC format ? Is > there software for FreeBSD that can do that, perhaps "sox" ? OK, finally I got this to working (not my sound card yet :-( ). Following is the script I use to convert my recorded messages. Perhaps someone is interessted in it: #!/bin/sh # # convert recorded message to WAV format, optionally send it via mail # # by: Stefan Herrmann <stefan@asterix.webaffairs.net> # Date: Fr 22 Mai 1998 14:18:40 CEST # CAT=/bin/cat RM=/bin/rm SOX=/usr/local/bin/sox ALAW2ULAW=/usr/local/bin/alaw2ulaw MAIL=/usr/bin/mail GZIP=/usr/bin/gzip ZIP=/usr/local/bin/zip UUENCODE=/usr/bin/uuencode inputfile="" outfilename="" mailto="" iF=0 oF=0 mF=0 set -- `getopt i:o:m: $*` if test $? != 0 then echo 'Usage: r2w -i <input file> -o <outfile name>.wav -m <email address>' exit 1 fi for i do case "$i" in -i) inputfile=$2 iF=1 shift shift ;; -o) outfilename=$2 oF=1 shift shift ;; -m) mailto=$2 mF=1 shift shift ;; --) shift break ;; esac done if [ $iF -eq 0 -o $oF -eq 0 ] then echo 'Usage: r2w -i <input file> -o <outfile name>.wav -m <email address>' exit 1 fi if [ $iF -eq 1 -a $oF -eq 1 ] then echo echo "converting $inputfile to $outfilename.wav ..." $CAT $inputfile | $ALAW2ULAW | $SOX -t raw -U -b -r 8000 - -t .wav $outfilename.wav fi if [ $iF -eq 1 -a $oF -eq 1 -a $mF -eq 1 ] then echo "... and sending it via email to $mailto ..." $UUENCODE $outfilename.wav message.wav | $MAIL -s"new message $outfilename" $mailto && $RM $outfilename.wav # only usefull when sending over the internet #$GZIP -c $outfilename.wav | $UUENCODE message.zip | $MAIL -s"Nachricht vom ISDN Anrufbeantworter" $mailto && $RM $outfilename.wav fi echo "done." echo Thanks to all i4b developers for such a great ISDN package !! Ciao Stefan -- --- Communications powered by FreeBSD --- >> WebAffairs InternetDienstleistungen << http://www.webaffairs.de/ 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?000801bd858a$75eefea0$030aa8c0>