[Freeswitch-users] Am I using play_and_detect_speech correctly?
X.Liu at hw.ac.uk
Thu Aug 2 20:25:33 MSD 2012
Many thanks, Chris!
I will have tries on it later on.
In my original question regarding to too many network connections/much traffic issues,
I re-setup the destination machine OS the problem seems to have been solved.
So the play_and_detect_speech APP look likes working fine, so I have not yet tried the workaround
by issuing "detect_speech pause". I will try it later if there was something unusual happening
to me after more tests.
So for now I think the problem has been resolved.
From: freeswitch-users-bounces at lists.freeswitch.org on behalf of Christopher Rienzo
Sent: Wed 8/1/2012 20:06
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Am I using play_and_detect_speech correctly?
The basic procedure for barge in is:
1. detect_speech unimrcp
2. playback say:please say yes or no. please say no or yes. please say
3. handle begin-speaking event
5. when playback finishes... detect_speech start_input_timers
6. handle detected-speech event
This is pretty much what play_and_detect_speech already does... see
switch_ivr_play_and_detect_speech() in switch_ivr_async.c if you know C.
On Wed, Aug 1, 2012 at 1:49 PM, Liu, Xingkun <X.Liu at hw.ac.uk> wrote:
> Thanks for your response, Hector!
> Yeah, I am using detect_speech via a similar way to yours.
> What I am more interested in is to use detect_speech app to handle user's
> After Chris mentioned the barge-in can be also handled by detect_speech I
> gave it a further thinking.
> Yeah, I could first "speak" the utterance and immediately resume ASR, then
> try to catch the begin_speaking event,
> then stop the TTS -- using this way to handle the user barge-in.
> (Chris, you may have a better idea, would you please let me know if you
> One thing I am worry about is that stopping currently playing media or
> utterance seems not work for me.
> When I recently try "api uuid_break <uuid>" it stopped currently playing
> music but also stopped playing following utterances
> which I sent to TTS soon later on after uuid_break.
> Anyway I will try it further again and let you all know what I will get.
Heriot-Watt University is the Sunday Times
Scottish University of the Year 2011-2012
We invite research leaders and ambitious early career researchers to
join us in leading and driving research in key inter-disciplinary themes.
Please see www.hw.ac.uk/researchleaders for further information and how
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users