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

11 views
Skip to first unread message

Jeremy C. Reed

unread,
Mar 10, 2008, 3:19:37 PM3/10/08
to netbs...@netbsd.org
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

unread,
Mar 10, 2008, 3:26:16 PM3/10/08
to Jeremy C. Reed, netbs...@netbsd.org

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:19 PM3/10/08
to netbs...@netbsd.org


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:07:45 PM3/20/08
to netbs...@netbsd.org
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

0 new messages