Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

audioplay and RIFF (little-endian) data, WAVE audio, GSM 6.10, mono 8000 Hz

42 views
Skip to first unread message

Jeremy C. Reed

unread,
Mar 10, 2008, 3:19:13 PM3/10/08
to
tx:work$ audioplay /home/reed/tmp/msg0001.WAV
audioplay: unsupported WAV format: /home/reed/tmp/msg0001.WAV


tx:work$ file /home/reed/tmp/msg0001.WAV
/home/reed/tmp/msg0001.WAV: RIFF (little-endian) data, WAVE audio, GSM
6.10, mono 8000 Hz


Any suggestions on using audioplay with this?

FWIW, I don't know how to get splay to play it either.


Jeremy C. Reed

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

Tobias Nygren

unread,
Mar 10, 2008, 3:25:34 PM3/10/08
to
On Mon, 10 Mar 2008 14:19:13 -0500 (CDT)
"Jeremy C. Reed" <re...@reedmedia.net> wrote:

> tx:work$ audioplay /home/reed/tmp/msg0001.WAV
> audioplay: unsupported WAV format: /home/reed/tmp/msg0001.WAV
>
>
> tx:work$ file /home/reed/tmp/msg0001.WAV
> /home/reed/tmp/msg0001.WAV: RIFF (little-endian) data, WAVE audio, GSM
> 6.10, mono 8000 Hz
>
>
> Any suggestions on using audioplay with this?
>
> FWIW, I don't know how to get splay to play it either.

pkgsrc/audio/gsm or some other package that links against it
should do it.

Cheers,
-Tobias

Jeremy C. Reed

unread,
Mar 10, 2008, 3:53:04 PM3/10/08
to
> On Mon, 10 Mar 2008 14:19:13 -0500 (CDT)
> "Jeremy C. Reed" <re...@reedmedia.net> wrote:
>
> > tx:work$ audioplay /home/reed/tmp/msg0001.WAV
> > audioplay: unsupported WAV format: /home/reed/tmp/msg0001.WAV
> >
> >
> > tx:work$ file /home/reed/tmp/msg0001.WAV
> > /home/reed/tmp/msg0001.WAV: RIFF (little-endian) data, WAVE audio, GSM
> > 6.10, mono 8000 Hz
> >
> >
> > Any suggestions on using audioplay with this?
> >
> > FWIW, I don't know how to get splay to play it either.
>
> pkgsrc/audio/gsm or some other package that links against it
> should do it.


Any examples?

I renamed my file to .gsm extention.

tcat complained:

tcat: bad frame in /home/reed/tmp/msg0001.WAV.gsm

I was hoping I could pipe that into audioplay. I don't know why tcat
assumes extension is .gsm.

The file is from email from Asterisk PBX.


Jeremy C. Reed

Jeremy C. Reed

unread,
Mar 20, 2008, 11:04:22 PM3/20/08
to
I was able to convert the GSM file (emailed from asterisk) using sox:

sox /home/reed/tmp/msg0001.WAV -s /home/reed/tmp/new.wav

The -s was required for me. It is "The audio data encoding is signed
linear (2's complement)".

Then I could play that with audioplay.

sox uses the gsm library to handle this. (I still haven't figured out how
to convert using gsm utilities.)

0 new messages