<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body 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".&nbsp; <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<br>
    <br>
    <br>
    <br>
    <br>
    On 07/31/2012 12:53 AM, Christopher Rienzo wrote:
    <blockquote
cite="mid:CAD-qRkhF-=6y6xWK0eyuZN3FSCUw7qAhHwyHbnJnXTmoZxZXrA@mail.gmail.com"
      type="cite">
      <div>You are using that APP in a way that hasn't been tested. &nbsp;Try
        to do "speech_detect pause" and see if that helps. &nbsp;It will
        reserve your ASR session for reuse while "speech_detect stop"
        will tear it down completely. &nbsp;If that doesn't work, open a jira
        ticket and attach a full call trace. &nbsp;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">&lt;<a moz-do-not-send="true"
                href="mailto:X.Liu@hw.ac.uk" target="_blank">X.Liu@hw.ac.uk</a>&gt;</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
                    moz-do-not-send="true"
                    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 moz-do-not-send="true"
                href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://www.freeswitchsolutions.com"
                target="_blank">http://www.freeswitchsolutions.com</a><br>
              <br>
              FreeSWITCH-powered IP PBX: The CudaTel Communication
              Server<br>
              <a moz-do-not-send="true" href="http://www.cudatel.com"
                target="_blank">http://www.cudatel.com</a><br>
              <br>
              Official FreeSWITCH Sites<br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
              <a moz-do-not-send="true" 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 moz-do-not-send="true"
                href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              UNSUBSCRIBE:<a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

Join Us At ClueCon - Aug 7-9, 2012

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">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 www.hw.ac.uk/researchleaders 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>
</body>
</html>