<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    The way you did and described here is similar to what I wanted. <br>
    I want to set start-input-timers=false in the initial setup, then
    start the recognition timer once the TTS finishes playing the
    prompt.<br>
    I do not use input callback as I am using ESL event (Java ESL Client
    0.9.2). <br>
    <br>
    I've not yet figured out how to know the prompt playing has
    finished, how to stop the TTS and how to start the input timer.<br>
    I didn't get many events when I did barge-in: only got two
    CHANNEL_EXECUTE and CAHNNEL_EXECUTE_COMPLETE events.<br>
    so didn't get the DETECTED_SPEECH at this point.<br>
    <br>
    In principle it shouldn't stop FS generating events when barging in,
    so there must be somethings wrong in my setup.<br>
    <br>
    From Examples_directory_lua_asr_tts in the wiki, it mentions the
    session needs to sleep for a few seconds before getting the results.<br>
    I tried but it didn't help.<br>
    <br>
    <br>
    <br>
    On 14/11/11 14:48, Christopher Rienzo wrote:
    <blockquote
cite="mid:CAD-qRkgQuRF63L8JV=X7JcnZYxavoMTQav=_bdxo4drecobmEg@mail.gmail.com"
      type="cite">I'm not sure why it locks up for you.&nbsp; It works for me
      and I know of at least one other developer that got it all to
      work.&nbsp; <br>
      <br>
      The way I do it in my custom APP is to set
      {start-input-timers=false} in the speech recognition request and
      register an input callback function to deal with the recognition
      and DTMF events.&nbsp; The input callback reacts to the start of speech
      and recognition complete events by stopping the prompt.&nbsp; At start
      of speech, the input timers are started and silence is played
      until the final result arrives from the recognizer (no match,
      match, etc).&nbsp; <br>
      <br>
      An alternative way to do this is to watch for the recognition
      events over ESL and react to them.<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On Mon, Nov 14, 2011 at 9:19 AM, xl127 <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:x.liu@hw.ac.uk">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 text="#000000" bgcolor="#FFFFFF"> Hi Christopher,<br>
            <br>
            That will be great! Thanks and looking forward to your app!<br>
            <br>
            By the way, do you have a quick thoughts about the reasons
            the FS stucks when garge-in occurs?<br>
            Otherwise if it is not straightforward to explain it,&nbsp; just
            leave it alone until your new app comes out.<br>
            <br>
            Cheers,<br>
            Xing
            <div>
              <div class="h5"><br>
                <br>
                <br>
                <br>
                On 14/11/11 13:23, Christopher Rienzo wrote:
                <blockquote type="cite">I'll write up a dialplan app
                  this week to deal with this.&nbsp; Getting tired of being
                  asked the same question over and over since it's too
                  complicated as is currently designed :)<br>
                  <br>
                  <br>
                  <br>
                  <br>
                  <div class="gmail_quote"> On Mon, Nov 14, 2011 at 8:07
                    AM, xl127 <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">
                      Hi,<br>
                      <br>
                      The first problem I need to solve is that FS
                      stucks when I speak during<br>
                      the prompt is playing.<br>
                      It looks like the recognizer is not listening any
                      more. It works fine if<br>
                      I speak after the playing prompt finishes.<br>
                      <br>
                      I tried Nuance and PocketSphinx recognizers and
                      got same problem.<br>
                      <br>
                      Any idea about what the possible causes are?<br>
                      <br>
                      Thanks!<br>
                      Xing<br>
                      <div>
                        <div><br>
                          <br>
                          On 11/11/11 18:59, xl127 wrote:<br>
                          &gt; Hello,<br>
                          &gt;<br>
                          &gt; I found this is a question that was asked
                          before by others, but I didn't<br>
                          &gt; find the answer.<br>
                          &gt;<br>
                          &gt; Anyway, I am using FS ESL outbound mode
                          connecting to my IVR app, &nbsp;using<br>
                          &gt; FS's "speak"<br>
                          &gt; and "detect_speech" to access Nuance MRCP
                          V1 server.<br>
                          &gt;<br>
                          &gt; I want the user to be able to barge-in
                          during the system's speaking.<br>
                          &gt; How could I implement it?<br>
                          &gt;<br>
                          &gt; I tried to specify
                          "kill-on-barge-in=true" in the mrcp config
                          profile.<br>
                          &gt; The barge-in doesn't work.<br>
                          &gt;<br>
                          &gt; With or without setting kill-on-barge-in,
                          FS stops responding to my<br>
                          &gt; phone call and<br>
                          &gt; eventually it hangs up my call if I speak
                          somthing (do the barge-in)<br>
                          &gt; during the system's speaking.<br>
                          &gt;<br>
                          &gt; I made a turn-by-turn loop in my app, the
                          ASR/TTS works fine if I do not<br>
                          &gt; do barge-in ( I wait until the TTS
                          finishes then I start to speak)<br>
                          &gt;<br>
                          &gt; Any advices please?<br>
                          &gt;<br>
                          &gt; Thanks!<br>
                          &gt; Xing<br>
                          &gt;<br>
                          &gt;<br>
                          &gt;<br>
                          <br>
                          <br>
                          <br>
                          --<br>
                          Heriot-Watt University is a Scottish charity<br>
                          registered under charity number SC000278.<br>
                          <br>
                          Heriot-Watt University is the Sunday Times<br>
                          Scottish University of the Year 2011-2012<br>
                          <br>
                          <br>
                          <br>
_________________________________________________________________________<br>
                          Professional FreeSWITCH Consulting Services:<br>
                          <a moz-do-not-send="true"
                            href="mailto:consulting@freeswitch.org"
                            target="_blank">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>
                          FreeSWITCH-users mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                            target="_blank">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>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                  <br>
                  <fieldset></fieldset>
                  <br>
                  <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<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>
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>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
                </blockquote>
                <br>
                <br>
              </div>
            </div>
            <hr>
            <br>
            <img src="cid:part1.04070402.01050304@hw.ac.uk"
              alt="Scottish University of the Year 2011-12" align="left">
            <font face="arial,helvetica">
              &nbsp; <b>Heriot-Watt University is the Sunday Times
                <div class="im"><br>
                  &nbsp; Scottish University of the Year 2011-2012</div>
              </b>
            </font>
            <br>
            <div class="im"><br>
              <font face="arial,helvetica" size="-1">
                &nbsp; Heriot-Watt University is a Scottish charity<br>
                &nbsp; registered under charity number SC000278.
                <br>
              </font>
            </div>
          </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>
          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>
      <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>

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>
<img src="cid:hw_uni_of_year.jpg" align=left 
alt="Scottish University of the Year 2011-12">
<font face="arial,helvetica">
&nbsp; <b>Heriot-Watt University is the Sunday Times<br> 
&nbsp; Scottish University of the Year 2011-2012</b>
</font>
<br><br>
<font face="arial,helvetica" size="-1">
&nbsp; Heriot-Watt University is a Scottish charity<br>
&nbsp; registered under charity number SC000278.
<br>
</font>

</body>
</html>