[Freeswitch-users] How to mix audio in FreeSWITCH

Khue Nguyen Minh khuenm at vega.com.vn
Tue Oct 30 15:46:33 MSK 2012


Hi Michael,

I create a js script as follow:
session.answer()
while (session.ready())
{

apiExecute("uuid_displace", session.uuid + " start
/opt/freeswitch/sounds/welcome.wav 60 mux");
apiExecute("uuid_displae", session.uuid + " stop
/opt/freeswitch/sounds/welcome.wav");
session.hangup()

}
When I make a new call, script run normal but I do not see anything (the
call hangup immediately) and I don't know How I can save "mux audio" to new
file? Please guide me.

Brs,
Khue

2012/10/30 Michael Collins <msc at freeswitch.org>

> You might also try uuid_displace API with the "mux" option, although I
> kind of like the idea of getting a group of uninhibited users all in a
> conference room singing "Love Shack" by the B52's.
> -MC
>
>
> On Sun, Oct 28, 2012 at 10:45 PM, SamyGo <govoiper at gmail.com> wrote:
>
>> Hi,
>>
>> You should try using "sox" if there is nothing you've found in
>> freeswitch. Execute a system sox command and input the two recordings.
>> Later the mixed audio can be played back to user.
>>
>> Another approach can be to use a conference bridge in which a local
>> channel and the incoming caller are bridged and the conference is recorded.
>> The recorded conference can be played back or used as well.
>>
>> BR
>> Sammy
>>
>>
>> On Mon, Oct 29, 2012 at 8:46 AM, Khue Nguyen Minh <khuenm at vega.com.vn>wrote:
>>
>>> Hi all,
>>>
>>> I want create a js scripts to execute a simple karaoke application. When
>>> user make call to my system, js scripts will play a audio file and user can
>>> sing. The js scripts will record the song and mix it with audio that is
>>> playing. Now, I can create a js to play audio, record call but I don't know
>>> how I can mix audio. Please help me.
>>>
>>> Thanks & Best regards,
>>> Khue.
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> --
> Michael S Collins
> Twitter: @mercutioviz
> http://www.FreeSWITCH.org
> http://www.ClueCon.com
> http://www.OSTAG.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121030/6b59be07/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list