That did the trick, thanks a lot. Is there any downside to having divert_events on all the time?<div><br></div><div>I&#39;ve updated the wiki for others who might run into this issue: <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_detect_speech">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_detect_speech</a></div>

<div><br></div><div>Jan<br><br><div class="gmail_quote">On Fri, Jun 11, 2010 at 11:07 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">instead of waiting for the events to be fired, instead try sending at the beginning of your session<div><br></div><div>

divert_events\n\n</div><div><br></div><div>that should cause the actual events to be queued to your channel in real time</div><div><div></div><div class="h5">
<div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Fri, Jun 11, 2010 at 3:54 PM, Jan Kubr <span dir="ltr">&lt;<a href="mailto:mail@jankubr.com" target="_blank">mail@jankubr.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
async:<div><br></div><div> &lt;action application=&quot;socket&quot; data=&quot;<a href="http://127.0.0.1:10000" target="_blank">127.0.0.1:10000</a> async full&quot; /&gt;<div><div></div><div><br><br><div class="gmail_quote">


On Fri, Jun 11, 2010 at 7:18 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">are you using sync or async mode on the socket.<div><br><br><div class="gmail_quote"><div><div></div><div>
On Thu, Jun 10, 2010 at 5:07 PM, Jan Kubr <span dir="ltr">&lt;<a href="mailto:mail@jankubr.com" target="_blank">mail@jankubr.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>Hi,<div>I&#39;m trying to detect speech while playing a file over the event socket.</div>




<div><br></div><div>I start detecting speech:</div>
<div><div><br></div><div>call-command: execute</div><div>execute-app-name: detect_speech</div>

<div>execute-app-arg: pocketsphinx ivr_grammar ivr</div><div>event-lock:true</div><div><br></div><div>Then playback the file:</div><div><br></div><div><div>call-command: execute</div><div>execute-app-name: playback</div>






<div>
execute-app-arg: ivr.wav</div><div>event-lock:false</div><div><br></div><div>Then resume the speech detection:</div><div><br></div><div><div>call-command: execute</div><div>execute-app-name: detect_speech</div><div>execute-app-arg: resume</div>







<div>event-lock:true</div><div><br></div><div><br></div><div>Now when I say something, I do see this in the FreeSWITCH console:</div><div><br></div><div><div>2010-06-10 23:29:06.994346 [DEBUG] mod_pocketsphinx.c:383 Recognized: ONE, Confidence: 100</div>







<div><br></div><div>But I don&#39;t receive the DETECTED_SPEECH events over the socket.</div><div><br></div><div>However, if I wait until the file is played, that is until I see this in the FreeSWITCH console:</div><div>






<br>
</div><div><div>2010-06-10 20:48:50.512148 [DEBUG] switch_ivr_play_say.c:1428 done playing file</div><div><br></div><div>and say something after that, I do get the DETECTED_SPEECH events.</div><div><br></div><div><br></div>







<div>Is there a way I could receive these events while the file is being played?</div><div><br></div><div>Thanks,</div><div>Jan Kubr</div></div></div></div><div><br></div></div><div><br></div></div>
<br></div></div><div>_______________________________________________<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></div></blockquote></div><br><br clear="all"><br>-- <br><div>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>





Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>




GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>




<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div></div>
<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></div>
<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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>


Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>

GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>

<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>
</div></div><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></div>