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

View: New views
4 Messages — Rating Filter:   Alert me  

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

by Jeremy C. Reed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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

by Tobias Nygren-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 10 Mar 2008 14:19:13 -0500 (CDT)
"Jeremy C. Reed" <reed@...> 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

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

by Jeremy C. Reed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> On Mon, 10 Mar 2008 14:19:13 -0500 (CDT)
> "Jeremy C. Reed" <reed@...> 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

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

by Jeremy C. Reed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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