Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Transcoding to GSM using SOX


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
bwood-lists at jacosof...
Guest





PostPosted: Mon Nov 03, 2008 10:01 pm    Post subject: [Freeswitch-users] Transcoding to GSM using SOX Reply with quote

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
Back to top
brian at freeswitch.org
Guest





PostPosted: Mon Nov 03, 2008 10:46 pm    Post subject: [Freeswitch-users] Transcoding to GSM using SOX Reply with quote

How are you trying to play these files?

/b


On Nov 3, 2008, at 9:01 PM, Brian Wood wrote:

Quote:
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


_______________________________________________
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
Back to top
bwood-lists at jacosof...
Guest





PostPosted: Tue Nov 04, 2008 9:28 am    Post subject: [Freeswitch-users] Transcoding to GSM using SOX Reply with quote

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:
Quote:
How are you trying to play these files?

/b



_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Nov 04, 2008 9:45 am    Post subject: [Freeswitch-users] Transcoding to GSM using SOX Reply with quote

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:
Quote:
From the CLI, I'm doing:

originate sofia/internal/1000@192.168.1.1 ([email]sofia/internal/1000@192.168.1.1[/email]) &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.
Back to top
bwood-lists at jacosof...
Guest





PostPosted: Tue Nov 04, 2008 10:01 am    Post subject: [Freeswitch-users] Transcoding to GSM using SOX Reply with quote

SOX v14.0.1. I'm running FreeSWITCH trunk 10208.


Brian West wrote:
Quote:
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:

Quote:
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
Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Nov 04, 2008 10:20 am    Post subject: [Freeswitch-users] Transcoding to GSM using SOX Reply with quote

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 (bwood-lists@jacosoft.com)> wrote:
Quote:
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 (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
mike at jerris.com
Guest





PostPosted: Tue Nov 04, 2008 10:44 am    Post subject: [Freeswitch-users] Transcoding to GSM using SOX Reply with quote

fixed in svn revision 10238.

Mike

On Nov 4, 2008, at 9:51 AM, Brian Wood wrote:

Quote:
SOX v14.0.1. I'm running FreeSWITCH trunk 10208.


Brian West wrote:
Quote:
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:

Quote:
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


_______________________________________________
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
Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Nov 04, 2008 10:55 am    Post subject: [Freeswitch-users] Transcoding to GSM using SOX Reply with quote

nevermind, try latest trunk we found the issue.


On Tue, Nov 4, 2008 at 9:20 AM, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
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 (bwood-lists@jacosoft.com)> wrote:
Quote:
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 (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
bwood-lists at jacosof...
Guest





PostPosted: Tue Nov 04, 2008 11:04 am    Post subject: [Freeswitch-users] Transcoding to GSM using SOX Reply with quote

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:
Quote:
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



_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services