[Freeswitch-users] DETECTED_SPEECH events while playing a file

Jan Kubr mail at jankubr.com
Sat Jun 12 02:54:38 PDT 2010


That did the trick, thanks a lot. Is there any downside to having
divert_events on all the time?

I've updated the wiki for others who might run into this issue:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_detect_speech

Jan

On Fri, Jun 11, 2010 at 11:07 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:

> instead of waiting for the events to be fired, instead try sending at the
> beginning of your session
>
> divert_events\n\n
>
> that should cause the actual events to be queued to your channel in real
> time
>
>
>
>
> On Fri, Jun 11, 2010 at 3:54 PM, Jan Kubr <mail at jankubr.com> wrote:
>
>> async:
>>
>>  <action application="socket" data="127.0.0.1:10000 async full" />
>>
>>
>> On Fri, Jun 11, 2010 at 7:18 PM, Anthony Minessale <
>> anthony.minessale at gmail.com> wrote:
>>
>>> are you using sync or async mode on the socket.
>>>
>>>
>>> On Thu, Jun 10, 2010 at 5:07 PM, Jan Kubr <mail at jankubr.com> wrote:
>>>
>>>> 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
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>>
>>>>
>>>
>>>
>>> --
>>> Anthony Minessale II
>>>
>>> FreeSWITCH http://www.freeswitch.org/
>>> ClueCon http://www.cluecon.com/
>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>
>>> AIM: anthm
>>> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
>>> IRC: irc.freenode.net #freeswitch
>>>
>>> FreeSWITCH Developer Conference
>>> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
>>> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
>>> pstn:+19193869900
>>>
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:+19193869900
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100612/c32a765b/attachment.html 


More information about the FreeSWITCH-users mailing list