Transcoding to GSM using SOX
I'm trying to transcode a .wav to a .gsm using SOX v14.0.1. What I get is a completely garbled when using playback in FreeSWITCH. I have verified that at least one other application (Quicktime Player) can in fact play the resulting .gsm file. I have tried the following: sox william.wav -t gsm william.gsm sox william.wav -t gsm -r 8000 william.gsm resample -ql sox william.wav -t gsm -r 8000 -c1 william.gsm resample -ql And I am playing the file using: originate sofia/internal/1000@192.168.1.1 &playback(/home/user/william.gsm) Other formats such as uLaw and aLaw (-t ul and -t al, respectively) seem to work fine. Does anyone know of a set of parameters for SOX that will make this work? At the end of the day, I just want it to work, so if anyone can recommend any other known/good command line tools to encode GSM that would be fine too.
How are you trying to play these files? /b On Nov 3, 2008, at 9:01 PM, Brian Wood wrote:
I'm trying to transcode a .wav to a .gsm using SOX v14.0.1. What I get is a completely garbled when using playback in FreeSWITCH. I have verified that at least one other application (Quicktime Player) can in fact play the resulting .gsm file.
I have tried the following:
sox william.wav -t gsm william.gsm sox william.wav -t gsm -r 8000 william.gsm resample -ql sox william.wav -t gsm -r 8000 -c1 william.gsm resample -ql
And I am playing the file using:
originate sofia/internal/1000@192.168.1.1 &playback(/home/user/william.gsm)
Other formats such as uLaw and aLaw (-t ul and -t al, respectively) seem to work fine.
Does anyone know of a set of parameters for SOX that will make this work?
At the end of the day, I just want it to work, so if anyone can recommend any other known/good command line tools to encode GSM that would be fine too.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
From the CLI, I'm doing: originate sofia/internal/1000@192.168.1.1 &playback(/home/user/william.gsm) ... just as a quick test. I've been using a combination of softphones and a Polycom 501 as the destination. The .gsm file plays fine in an application such as quicktime. .wav, .al, and .ul seem to work fine with the playback command. Brian West wrote:
How are you trying to play these files?
/b
I use that every now and then it works fine... I'll have to retest this shortly and see... what sox version are you using? /b On Nov 4, 2008, at 8:28 AM, Brian Wood wrote:
From the CLI, I'm doing:
originate sofia/internal/1000@192.168.1.1 &playback(/home/user/ william.gsm)
... just as a quick test. I've been using a combination of softphones and a Polycom 501 as the destination. The .gsm file plays fine in an application such as quicktime. .wav, .al, and .ul seem to work fine with the playback command.
SOX v14.0.1. I'm running FreeSWITCH trunk 10208. Brian West wrote:
I use that every now and then it works fine... I'll have to retest this shortly and see... what sox version are you using?
/b
On Nov 4, 2008, at 8:28 AM, Brian Wood wrote:
From the CLI, I'm doing:
originate sofia/internal/1000@192.168.1.1 <mailto:sofia/internal/1000@192.168.1.1> &playback(/home/user/william.gsm)
... just as a quick test. I've been using a combination of softphones and a Polycom 501 as the destination. The .gsm file plays fine in an application such as quicktime. .wav, .al, and .ul seem to work fine with the playback command.
------------------------------------------------------------------------
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
fixed in svn revision 10238. Mike On Nov 4, 2008, at 9:51 AM, Brian Wood wrote:
SOX v14.0.1. I'm running FreeSWITCH trunk 10208.
Brian West wrote:
I use that every now and then it works fine... I'll have to retest this shortly and see... what sox version are you using?
/b
On Nov 4, 2008, at 8:28 AM, Brian Wood wrote:
From the CLI, I'm doing:
originate sofia/internal/1000@192.168.1.1 <mailto:sofia/internal/1000@192.168.1.1> &playback(/home/user/ william.gsm)
... just as a quick test. I've been using a combination of softphones and a Polycom 501 as the destination. The .gsm file plays fine in an application such as quicktime. .wav, .al, and .ul seem to work fine with the playback command.
------------------------------------------------------------------------
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Try reversing the order you load mod_sndfile and mod_voipcodecs and let me know if it makes any diff. On Mon, Nov 3, 2008 at 9:01 PM, Brian Wood <bwood-lists@jacosoft.com> wrote:
I'm trying to transcode a .wav to a .gsm using SOX v14.0.1. What I get is a completely garbled when using playback in FreeSWITCH. I have verified that at least one other application (Quicktime Player) can in fact play the resulting .gsm file.
I have tried the following:
sox william.wav -t gsm william.gsm sox william.wav -t gsm -r 8000 william.gsm resample -ql sox william.wav -t gsm -r 8000 -c1 william.gsm resample -ql
And I am playing the file using:
originate sofia/internal/1000@192.168.1.1 &playback(/home/user/william.gsm)
Other formats such as uLaw and aLaw (-t ul and -t al, respectively) seem to work fine.
Does anyone know of a set of parameters for SOX that will make this work?
At the end of the day, I just want it to work, so if anyone can recommend any other known/good command line tools to encode GSM that would be fine too.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
nevermind, try latest trunk we found the issue. On Tue, Nov 4, 2008 at 9:20 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
Try reversing the order you load mod_sndfile and mod_voipcodecs and let me know if it makes any diff.
On Mon, Nov 3, 2008 at 9:01 PM, Brian Wood <bwood-lists@jacosoft.com>wrote:
I'm trying to transcode a .wav to a .gsm using SOX v14.0.1. What I get is a completely garbled when using playback in FreeSWITCH. I have verified that at least one other application (Quicktime Player) can in fact play the resulting .gsm file.
I have tried the following:
sox william.wav -t gsm william.gsm sox william.wav -t gsm -r 8000 william.gsm resample -ql sox william.wav -t gsm -r 8000 -c1 william.gsm resample -ql
And I am playing the file using:
originate sofia/internal/1000@192.168.1.1 &playback(/home/user/william.gsm)
Other formats such as uLaw and aLaw (-t ul and -t al, respectively) seem to work fine.
Does anyone know of a set of parameters for SOX that will make this work?
At the end of the day, I just want it to work, so if anyone can recommend any other known/good command line tools to encode GSM that would be fine too.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Confirmed. Fixed in 10238. Thanks! Note to anyone else out there, you need to set the sample rate (otherwise playback is slow), so the command line you want is: sox william.wav -t gsm -r 8000 william.gsm Anthony Minessale wrote:
nevermind, try latest trunk we found the issue.
On Tue, Nov 4, 2008 at 9:20 AM, Anthony Minessale <anthony.minessale@gmail.com <mailto:anthony.minessale@gmail.com>> wrote:
Try reversing the order you load mod_sndfile and mod_voipcodecs and let me know if it makes any diff.
On Mon, Nov 3, 2008 at 9:01 PM, Brian Wood <bwood-lists@jacosoft.com <mailto:bwood-lists@jacosoft.com>> wrote:
I'm trying to transcode a .wav to a .gsm using SOX v14.0.1. What I get is a completely garbled when using playback in FreeSWITCH. I have verified that at least one other application (Quicktime Player) can in fact play the resulting .gsm file.
I have tried the following:
sox william.wav -t gsm william.gsm sox william.wav -t gsm -r 8000 william.gsm resample -ql sox william.wav -t gsm -r 8000 -c1 william.gsm resample -ql
And I am playing the file using:
originate sofia/internal/1000@192.168.1.1 <mailto:1000@192.168.1.1> &playback(/home/user/william.gsm)
Other formats such as uLaw and aLaw (-t ul and -t al, respectively) seem to work fine.
Does anyone know of a set of parameters for SOX that will make this work?
At the end of the day, I just want it to work, so if anyone can recommend any other known/good command line tools to encode GSM that would be fine too.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org <mailto:Freeswitch-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 <http://iax:guest@conference.freeswitch.org/888> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 <http://iax:guest@conference.freeswitch.org/888> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400 ------------------------------------------------------------------------
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Anthony Minessale
-
Brian West
-
Brian Wood
-
Michael Jerris