[Freeswitch-users] DETECTED_SPEECH events while playing a file

Jan Kubr mail at jankubr.com
Thu Jun 10 15:07:11 PDT 2010


Hi,
I'm trying to detect speech while playing a file over the event socket.

I start detecting speech:

call-command: execute
execute-app-name: detect_speech
execute-app-arg: pocketsphinx ivr_grammar ivr
event-lock:true

Then playback the file:

call-command: execute
execute-app-name: playback
execute-app-arg: ivr.wav
event-lock:false

Then resume the speech detection:

call-command: execute
execute-app-name: detect_speech
execute-app-arg: resume
event-lock:true


Now when I say something, I do see this in the FreeSWITCH console:

2010-06-10 23:29:06.994346 [DEBUG] mod_pocketsphinx.c:383 Recognized: ONE,
Confidence: 100

But I don't receive the DETECTED_SPEECH events over the socket.

However, if I wait until the file is played, that is until I see this in the
FreeSWITCH console:

2010-06-10 20:48:50.512148 [DEBUG] switch_ivr_play_say.c:1428 done playing
file

and say something after that, I do get the DETECTED_SPEECH events.


Is there a way I could receive these events while the file is being played?

Thanks,
Jan Kubr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100611/4b266ff8/attachment.html 


More information about the FreeSWITCH-users mailing list