Sox Convert Gsm File

Home » Asterisk Users » Sox Convert Gsm File
Asterisk Users 1 Comment

I am using CentOS 6.7 64 bit and sox to convert gsm files to wav.

When I do that I used to get a header like:
RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz

Now I get a header like:
RIFF (little-endian) data, WAVE audio, GSM 6.10, mono 8000 Hz

And the file does not play in the browser (chrome).

I use sox file.gsm file.wav I have tried: sox file.gsm -r 8000 -c 1 file.wav

If I use the rasterisk convert file method – that works and has PCM not GSM
but I need to use sox. Reference:
http://www.voip-info.org/wiki/view/Convert+WAV+audio+files+for+use+in+Asterisk

How does one correctly convert gsm to wav for play in the browser?

Thanks,

Jerry

One thought on - Sox Convert Gsm File

  • Never been a fan of using a sledge hammer when a tack hammer will do.

    I use:

    sox\
    input.xxx\
    –bits\
    –channels=1\
    –encoding=signed-integer\
    –rate