[asterisk-users] [1.4 + FreeBSD 6.2] Playing WAV PCM file?

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Jan 2 08:52:57 CST 2008


On Wed, Jan 02, 2008 at 06:17:04AM +0100, Vincent wrote:
> On Tue, 01 Jan 2008 16:10:47 +0100, MatsK <mkn0014 at gmail.com> wrote:
> >The codec is specified (for a sip device) in sip.conf, like this:
> 
> Good to know. Actually, I'll have Asterisk save voicemails as WAV and
> move the files to the www's htdocs, and send an e-mail to users with
> the link they'll just have to click to listen to them.
> 
> Actually, I'm thinking of embedding a Flash player in the web page,
> and update its playlist file so that the browser doesn't launch the
> external app that is registered with Windows to play WAV files. But I
> haven't found any Flash player that can play WAV, only MP3 :-/

Huh?

What do you have to gain from using a flash player? 

Every web browser that supports a flash addon supports also playing wav
(that is: WAV/RIFF files) files natively. But not vice-versa.

BTW: support for WAV/gsm is also getting more and more common.

> 
> >And you know that you can convert the files to every codec format that
> >is in use then will the cpu load be minimalized !
> 
> Yup, but the CPU is just a Pentium 233MHz. I just converted a 20MB WAV
> file from a CD-quality (44KHz sample rate, stereo) into the format
> Asterisk likes (8HKz, mono), and it took about 10mn. So conversion is
> out of the question, as Asterisk is likely to have a problem answering
> other incoming calls while it's busy converting the last voicemail
> message.

Huh?

And you want to encode MP3s on that server? It won't save you *that*
much space either.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list