<div>I looked over the code again last night and verified that play_and_detect_speech should try to stop detection before loading the grammar. However, that scenario is not really tested, so try the workaround first. If that doesn't work, open a jira ticket with detailed logs so it can be fixed.</div>
<div><br></div><div>You can use the detect_speech APP to do everything over ESL. It is a lot more work, but once you figure it out, you have the freedom to do whatever you want, including handling barge-in. play_and_detect_speech is designed to handle the typical use case.</div>
<div><br></div><div>Chris</div><div><br></div><br><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 3:59 AM, x.liu <span dir="ltr"><<a href="mailto:x.liu@hw.ac.uk" target="_blank">x.liu@hw.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hi Chris,<br>
<br>
Okay, thanks! I will have tries to see how it works.<br>
<br>
For the normal use of the app: play_and_detect_speech, will it
resume previous ASR session, <br>
or will it stop previous session and restart a new session each time
when I issue it via ESL?<br>
<br>
For the app of detect_speech, I can first to start an ASR session by
"detect_speech speechMod grammar grammarPath", <br>
then I can do "detect_speech pause", or "detect_speech resume" or
"detect_speech stop". <br>
But for play_and_detect_speech, I am not sure how it works in terms
of starting, pause, resume/restart sequence.<br>
<br>
The play_and_detect_speech is a very good, useful app as it supports
the barge-in. So we definitely need to use it.<br>
<br>
Thanks!<br>
<br>
Xing<div><div class="h5"><br>
<br>
<br>
<br>
<br>
On 07/31/2012 12:53 AM, Christopher Rienzo wrote:
<blockquote type="cite">
<div>You are using that APP in a way that hasn't been tested. Try
to do "speech_detect pause" and see if that helps. It will
reserve your ASR session for reuse while "speech_detect stop"
will tear it down completely. If that doesn't work, open a jira
ticket and attach a full call trace. It's difficult to
understand exactly what is happening from your description.</div>
<div>
<div><br>
</div>
<div><br>
</div>
<div>Chris</div>
<div><br>
<br>
<br>
<div class="gmail_quote">On Mon, Jul 30, 2012 at 5:38 PM, Liu,
Xingkun <span dir="ltr"><<a href="mailto:X.Liu@hw.ac.uk" target="_blank">X.Liu@hw.ac.uk</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p><font>Hello,<br>
<br>
I am using play_and_detect_speech with Java ESL in
my IVR applications.<br>
<br>
Previously I call it again each time after I receive
any recognition event,<br>
like recognition complete, no-input-timeout, or
recognition-timeout,<br>
it seems to work fine.<br>
<br>
Now I have changed my app to issue
play_and_detect_speech command based on<br>
my available system utterances as well as the speech
event.<br>
<br>
I.e., I use a separate thread to constantly check if
there is a system utterance coming in<br>
from another component of my application, if there
is any utterance I issue the command which will<br>
speak the new utterance and listen to user input no
matter whether or not previous<br>
command has finished. And if there is any speech
event (recognition result, timeout etc.)<br>
the play_and_detect_speech command is also issued
but with playing silence.<br>
<br>
Obviously the new command will stop the utterance
speaking of the previous command if it is not
finished.<br>
<br>
My question is<br>
<br>
will the new play_and_detect_speech command also
stop the previous ASR listening<br>
or will there be many ASR listening channel and
sending speech data (or silence) to ASR server?<br>
<br>
Do I need to explicitly issue a "stop" commnad
before issuing a new play_and_detect_speech?<br>
If yes, how to do that, by "detect_speech stop"?<br>
<br>
Recently there is a network traffice problem (lots
of connections /data transportation to the ASR
server machine)<br>
when I am running my application. I am not sure if
this is because of other issues<br>
or because of my new changes to the way of using
play_and_detect_speech.<br>
<br>
Please any one could shed a light on this?<br>
<br>
Many thanks!<br>
<br>
Xing<br>
<br>
</font>
</p>
<br>
<hr>
<br>
<font face="arial, helvetica" size="-1">
<b>Heriot-Watt University is the Sunday Times Scottish
University of the Year 2011-2012.</b>
</font>
<br>
<br>
<font face="arial,helvetica" size="-1">
We invite research leaders and ambitious early career
researchers to join us in leading and driving research
in key inter-disciplinary themes. Please see <a href="http://www.hw.ac.uk/researchleaders" target="_blank">www.hw.ac.uk/researchleaders</a> for
further information and how to apply. </font>
<br>
<br>
<font face="arial,helvetica" size="-2">
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.
<br>
</font>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication
Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<hr>
<br>
<font face="arial, helvetica" size="-1">
<b>Heriot-Watt University is the Sunday Times Scottish University of the Year 2011-2012.</b>
</font>
<br><br>
<font face="arial,helvetica" size="-1">
We invite research leaders and ambitious early career researchers to
join us in leading and driving research in key inter-disciplinary themes.
Please see <a href="http://www.hw.ac.uk/researchleaders" target="_blank">www.hw.ac.uk/researchleaders</a> for further information and how
to apply.
</font>
<br><br>
<font face="arial,helvetica" size="-2">
Heriot-Watt University is a Scottish charity registered under charity number SC000278.
<br>
</font>
</div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>