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: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.digium.com/pipermail/asterisk-users/attachments/20150923/b0486858/attachment.html>
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