Hi,<div>I'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'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>