[asterisk-users] sox convert gsm file

Steve Edwards asterisk.org at sedwards.com
Wed Sep 23 09:30:20 CDT 2015


On Wed, 23 Sep 2015, Jerry Geis wrote:

> If I use the rasterisk convert file method - that works and has PCM not 
> GSM but I need to use sox.

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

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

I use:

 	sox\
 		input.xxx\
 		--bits=16\
 		--channels=1\
 		--encoding=signed-integer\
 		--rate=8000\
 		output.wav

Followed by a trip through:

 	normalize\
 		--amplitude=-22dB\
 		output.wav

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST



More information about the asterisk-users mailing list