After somebody records a message asterisk notifies me and encloses the WAV file. Though I'm not sure if this is a WAV format. I can not play it. According to the file specification it is: msg0000.WAV: RIFF (little-endian) data, WAVE audio, GSM 6.10, mono 8000 Hz How to play received message? -- #Joseph
Joseph wrote:> After somebody records a message asterisk notifies me and encloses the > WAV file. Though I'm not sure if this is a WAV format. I can not play > it. > How to play received message?Did you try to use Windows Merdia Player? In other hand, if you are receiving a .GSM file, you can use the j2 program: http://www.j2.com/jconnect/twa/page/download
Joseph wrote:>>>What Linux players support WAV format? >>> >>> >>Many support wav. Few support GSM codec in wav format. You can use sox >>to convert to signed linear wav so you can play with all wav capable >>players. >> >> >> > >I think yours is the correct answer. The file is GSM codec in wav >format. After converting it to MP3 I have no problem playing it. > >Is there a way to tell asterisk to send me MP3 format instead of WAV? > > >Joseph, I had better results with mplayer than any other player I tried. Mplayer will play the .wav, and the .WAV files, which are the uncompressed and gsm encoded wavs. I could only get xmms to play the uncompressed wavs, whichever one that is. I tried several plugins and never got xmms to work with the gsm encoded wavs, although I could have been doing it wrong. I was never able to get mplayer to play the .gsm files. I tried vlc (videolan client) with some sucess with wavs but I ended up using mplayer. You might also try realplayer/helix player, I never got around to trying it. -jeff
Look for the 'play' binary. It has never failed me in playing a wave (gsm, pcm, etc) from asterisk. It's an older OSS (/dev/dsp) binary, so you'll need OSS compatibility. On Thu, 25 Nov 2004 20:12:14 -0700, Joseph <syscon@interbaun.com> wrote:> After somebody records a message asterisk notifies me and encloses the > WAV file. Though I'm not sure if this is a WAV format. I can not play > it. > According to the file specification it is: > msg0000.WAV: RIFF (little-endian) data, WAVE audio, GSM 6.10, mono 8000 > Hz > > How to play received message?