are you using sync or async mode on the socket.<div><br><br><div class="gmail_quote">On Thu, Jun 10, 2010 at 5:07 PM, Jan Kubr <span dir="ltr">&lt;<a href="mailto:mail@jankubr.com">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;">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>_______________________________________________<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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>