Re: [Freeswitch-users] Recording background music and voice is outof sync

2009-02-09 Thread Daniel Liang
Hi Brian,

I have created a new thread regarding this issue a few days ago, you may
have missed it. So, I am reposting the same content there:

What I did was the following:
 
First, I sent the playback command:
 
call-command: execute
execute-app-name: playback
execute-app-arg: 
 
Then I sent uuid_record (Sorry, it was not Record command):
 
api uuid_record  start  120
 
I also tried replacing the playback command with:
api uuid_displace  start  0 mux
 
But the end results are the same. The recorded user's voice is about 0.5
second behind the expected result.
 
Thanks,
Daniel 

-Original Message-
From: freeswitch-users-boun...@lists.freeswitch.org
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of
Brian West
Sent: February 3, 2009 6:36 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Recording background music and voice is
outof sync

Can you show us an example of how you're doing this?  Playback and
Record aren't async so you'll need to show us how you're doing this.

Also don't hijack threads you hit replay on the one "Re: [Freeswitch-
users] FreeSwitch setup as a "Dumb" SBC" as the subject, deleted the
subject and started a new body.  That hijacks the thread and that can
cause your problem to go ignored in some cases if people aren't
interested in the thread topic depending on how their reader threads the
emails.

Please click new message and type freeswitch- us...@lists.freeswitch.org
in and then input your subject and body to start a new thread.

Thanks,
Brian West
FreeSWITCH.org


On Feb 3, 2009, at 8:21 PM, Daniel Liang wrote:

> Hi,
>
> I was trying to record a background music with a user's voice at the 
> same time. I did a playback and started recording. But the recorded 
> user's voice and the background music is about 0.5 second out of sync.

> I also tried to use uuid_displace instead of playback, but I got the 
> same result.


___
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] Recording background music and voice is out of sync

2009-02-04 Thread Daniel Liang
 What I did was the following:
 
First, I sent the playback command:
 
call-command: execute
execute-app-name: playback
execute-app-arg: 
 
Then I send uuid_record (Sorry, it was not Record command):
 
api uuid_record  start  120
 
I also tried replacing the playback command with:
api uuid_displace  start  0 mux
 
But the end results are the same. The recorded user's voice is about 0.5
second behind the expected result.
 
Thanks,
Daniel
 
 
-Original Message-
From: freeswitch-users-boun...@lists.freeswitch.org
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of
Brian West
Sent: February 3, 2009 6:36 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Recording background music and voice is
outof sync
 
Can you show us an example of how you're doing this?  Playback and
Record aren't async so you'll need to show us how you're doing this.
 
Also don't hijack threads you hit replay on the one "Re: [Freeswitch-
users] FreeSwitch setup as a "Dumb" SBC" as the subject, deleted the
subject and started a new body.  That hijacks the thread and that can
cause your problem to go ignored in some cases if people aren't
interested in the thread topic depending on how their reader threads the
emails.
 
Please click new message and type freeswitch- us...@lists.freeswitch.org
in and then input your subject and body to start a new thread.
 
Thanks,
Brian West
FreeSWITCH.org
 

On Feb 3, 2009, at 8:21 PM, Daniel Liang wrote:
 
> Hi,
>
> I was trying to record a background music with a user's voice at the 
> same time. I did a playback and started recording. But the recorded 
> user's voice and the background music is about 0.5 second out of sync.

> I also tried to use uuid_displace instead of playback, but I got the 
> same result.
 

___
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 <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] Recording background music and voice is out of sync

2009-02-03 Thread Daniel Liang
Hi,

I was trying to record a background music with a user's voice at the
same time. I did a playback and started recording. But the recorded
user's voice and the background music is about 0.5 second out of sync. I
also tried to use uuid_displace instead of playback, but I got the same
result.

I guess it was the transfer delay between freeswitch and the end user.
Is there a way to avoid that?

One of the solution that I can think of is to route the background music
to the end user and then route it back to freeswitch and let freeswitch
recorded user's voice and the routed music together. But I don't know
how I can do that in freeswitch.

Any idea?

Thanks.
Daniel

___
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


Re: [Freeswitch-users] How to break a playback with loops

2009-01-30 Thread Daniel Liang
It works. Thank you.



From: freeswitch-users-boun...@lists.freeswitch.org
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of
Anthony Minessale
Sent: January 29, 2009 1:54 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] How to break a playback with loops


The break function with the all app is better for this

api break  all

This lets you still break even if the playback is in event lock

I did add to trunk a patch so you can do it with the app
you can now add "all" as the app args to break completely.



On Thu, Jan 29, 2009 at 3:34 PM, Michael Collins 
wrote:


Could you please file a bug report on this? jira.freeswitch.org.
Also,
follow the bug reporting guidelines here:
http://wiki.freeswitch.org/wiki/Reporting_Bugs

Thanks,
MC


On Thu, Jan 29, 2009 at 11:05 AM, Daniel Liang
 wrote:
> Hi,
>
> I am trying to playing back a wav file a few times, and on
receiving a dtmf
> event, it stops playing the file. The command I sent is:
>
> sendmsg
> call-command: execute
> execute-app-name: playback
> execute-app-arg: 
> loops: 4
>
> On receiving a dtmf event, I send a break command:
>
> sendmsg
> call-command: execute
> execute-app-name: break
>
> However, that only breaks one loop of the playback. And I have
to press a
> dtmf for 4 times to stop the file.
>
> I tried sending 4 break commands all at once. But it didn't
work. And even
> worse, my program stops receiving dtmfs anymore. My guess is
that the first
> break stops the first loop, but before the second loop starts,
the following
> 3 breaks stop something else that I don't know what they are.
    >
> Any help is appreciated.
>
> Thanks.
> Daniel Liang
>

> ___
> 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





-- 
Anthony Minessale II

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

AIM: anthm
MSN:anthony_miness...@hotmail.com
<mailto:msn%3aanthony_miness...@hotmail.com> 
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
<mailto:paypal%3aanthony.miness...@gmail.com> 
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org
<mailto:sip%3a...@conference.freeswitch.org> 
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org
<mailto:googletalk%3aconf%2b...@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] How to break a playback with loops

2009-01-29 Thread Daniel Liang
Hi,
 
I am trying to playing back a wav file a few times, and on receiving a
dtmf event, it stops playing the file. The command I sent is:
 
sendmsg
call-command: execute
execute-app-name: playback
execute-app-arg: 
loops: 4
 
On receiving a dtmf event, I send a break command:
 
sendmsg
call-command: execute
execute-app-name: break

 
However, that only breaks one loop of the playback. And I have to press
a dtmf for 4 times to stop the file.
 
I tried sending 4 break commands all at once. But it didn't work. And
even worse, my program stops receiving dtmfs anymore. My guess is that
the first break stops the first loop, but before the second loop starts,
the following 3 breaks stop something else that I don't know what they
are.
 
Any help is appreciated.
 
Thanks.
Daniel Liang
 
___
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