Discussion:
audioplay and RIFF (little-endian) data, WAVE audio, GSM 6.10, mono 8000 Hz
(too old to reply)
Jeremy C. Reed
2008-03-10 19:19:37 UTC
Permalink
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
Tobias Nygren
2008-03-10 19:26:16 UTC
Permalink
On Mon, 10 Mar 2008 14:19:13 -0500 (CDT)
Post by Jeremy C. Reed
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
2008-03-10 19:53:19 UTC
Permalink
Post by Tobias Nygren
On Mon, 10 Mar 2008 14:19:13 -0500 (CDT)
Post by Jeremy C. Reed
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
2008-03-21 03:07:45 UTC
Permalink
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.)

Jeremy C. Reed

Loading...