From owner-freebsd-isdn Fri May 22 07:06:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA26056 for freebsd-isdn-outgoing; Fri, 22 May 1998 07:06:26 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from hq.seicom.net (hq.seicom.net [194.97.200.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA25878 for ; Fri, 22 May 1998 07:05:58 -0700 (PDT) (envelope-from stefan@asterix.webaffairs.net) Received: from asterix.webaffairs.net by hq.seicom.net (8.8.5/8.8.3) with ESMTP id QAA01971; Fri, 22 May 1998 16:09:17 +0200 (CEST) Received: from obelix (obelix.webaffairs.net [192.168.10.3]) by asterix.webaffairs.net (8.8.7/8.8.7) with SMTP id QAA06269; Fri, 22 May 1998 16:06:32 +0200 (CEST) (envelope-from stefan@asterix.webaffairs.net) From: "Stefan Herrmann" To: "David Wetzel" Cc: Subject: RE: i4b and telefon answering Date: Fri, 22 May 1998 16:03:56 +0200 Message-ID: <000801bd858a$75eefea0$030aa8c0@obelix.webaffairs.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-reply-to: <000401bd8567$e94c0140$030aa8c0@obelix.webaffairs.net> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 # 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 -o .wav -m ' 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 -o .wav -m ' 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