mod_pocketsphinx dialplan example
I'm looking for a good example of doing speech detection in a dialplan, and I can't find one. Right now I am trying: <include> <extension name="dot_license"> <condition field="destination_number" expression="^dot_license$"/> <condition field="${module_exists(mod_pocketsphinx)}" expression="true"> <action application="answer"/> <action application="sleep" data="1000"/> <action application="speak" data="flite|kal|Say the license number"/> <action application="detect_speech" data="pocketsphinx dot_license dot_license"/> </condition> </extension> </include> But after enabling speech detection it just hangs up. How can I let the caller respond and collect/use the result from a dialplan? Thanks, Chad Engler Telephony Programmer PATLive 1.800.775.7790 x746 chad.engler@patlive.com <mailto:chad.engler@patlive.com> Hosted Communications | Friendly Service www.patlive.com <http://www.patlive.com/>
http://wiki.freeswitch.org/wiki/Mod_pocketsphinx describes the Pizza Demo a bit. -Avi On Tue, Feb 12, 2013 at 10:42 PM, Chad Engler <Chad.Engler@patlive.com>wrote:
I'm looking for a good example of doing speech detection in a dialplan, and I can't find one.****
** **
Right now I am trying:****
** **
<include>****
<extension name="dot_license">****
<condition field="destination_number" expression="^dot_license$"/>****
<condition field="${module_exists(mod_pocketsphinx)}" expression="true">****
<action application="answer"/>****
<action application="sleep" data="1000"/>****
<action application="speak" data="flite|kal|Say the license number"/> ****
<action application="detect_speech" data="pocketsphinx dot_license dot_license"/>****
</condition>****
</extension>****
</include>****
** **
But after enabling speech detection it just hangs up. How can I let the caller respond and collect/use the result from a dialplan?****
** **
Thanks,****
** **
*Chad Engler*****
Telephony Programmer****
PATLive****
1.800.775.7790 x746****
chad.engler@patlive.com****
** **
Hosted Communications | Friendly Service www.patlive.com****
** **
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You can't do it all in XML, you need to use scripting or a module. You need to respond to the input events for the session. Look at the Pizza example. --Dave _____ From: Chad Engler [mailto:Chad.Engler@patlive.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 12 Feb 2013 12:42:52 -0800 Subject: [Freeswitch-users] mod_pocketsphinx dialplan example I'm looking for a good example of doing speech detection in a dialplan, and I can't find one. Right now I am trying: <include> <extension name="dot_license"> <condition field="destination_number" expression="^dot_license$"/> <condition field="${module_exists(mod_pocketsphinx)}" expression="true"> <action application="answer"/> <action application="sleep" data="1000"/> <action application="speak" data="flite|kal|Say the license number"/> <action application="detect_speech" data="pocketsphinx dot_license dot_license"/> </condition> </extension> </include> But after enabling speech detection it just hangs up. How can I let the caller respond and collect/use the result from a dialplan? Thanks, Chad Engler Telephony Programmer PATLive 1.800.775.7790 x746 chad.engler@patlive.com Hosted Communications | Friendly Service www.patlive.com
I saw the pizza example, and I understand how to do it through ESL; just was wondering how to do it with pure XML. If you can't that is fine I can use ESL, thanks for the help. -Chad From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Dave R. Kompel Sent: Tuesday, February 12, 2013 3:52 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] mod_pocketsphinx dialplan example You can't do it all in XML, you need to use scripting or a module. You need to respond to the input events for the session. Look at the Pizza example. --Dave ________________________________ From: Chad Engler [mailto:Chad.Engler@patlive.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 12 Feb 2013 12:42:52 -0800 Subject: [Freeswitch-users] mod_pocketsphinx dialplan example I'm looking for a good example of doing speech detection in a dialplan, and I can't find one. Right now I am trying: <include> <extension name="dot_license"> <condition field="destination_number" expression="^dot_license$"/> <condition field="${module_exists(mod_pocketsphinx)}" expression="true"> <action application="answer"/> <action application="sleep" data="1000"/> <action application="speak" data="flite|kal|Say the license number"/> <action application="detect_speech" data="pocketsphinx dot_license dot_license"/> </condition> </extension> </include> But after enabling speech detection it just hangs up. How can I let the caller respond and collect/use the result from a dialplan? Thanks, Chad Engler Telephony Programmer PATLive 1.800.775.7790 x746 chad.engler@patlive.com <mailto:chad.engler@patlive.com> Hosted Communications | Friendly Service www.patlive.com <http://www.patlive.com/>
participants (3)
-
Avi Marcus
-
Chad Engler
-
Dave R. Kompel