VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
geisj at pagestation.com Guest
|
Posted: Wed Sep 23, 2015 9:14 am Post subject: [asterisk-users] sox convert gsm file |
|
|
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 |
|
Back to top |
|
|
asterisk.org at sedwar... Guest
|
Posted: Wed Sep 23, 2015 9:31 am Post subject: [asterisk-users] sox convert gsm file |
|
|
On Wed, 23 Sep 2015, Jerry Geis wrote:
Quote: | 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.
Quote: | 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@sedwards.com Voice: +1-760-468-3867 PST
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|