<div dir="ltr"><a href="http://wiki.freeswitch.org/wiki/Mod_pocketsphinx">http://wiki.freeswitch.org/wiki/Mod_pocketsphinx</a> describes the Pizza Demo a bit.<div><br clear="all"><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div>

</div><br><div class="gmail_quote">On Tue, Feb 12, 2013 at 10:42 PM, Chad Engler <span dir="ltr">&lt;<a href="mailto:Chad.Engler@patlive.com" target="_blank">Chad.Engler@patlive.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">I&#39;m looking for a good example of doing speech detection in a dialplan, and I can&#39;t find one.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>

<p class="MsoNormal">Right now I am trying:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-left:.5in">&lt;include&gt;<u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in">

  &lt;extension name=&quot;dot_license&quot;&gt;<u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in">    &lt;condition field=&quot;destination_number&quot; expression=&quot;^dot_license$&quot;/&gt;<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">    &lt;condition field=&quot;${module_exists(mod_pocketsphinx)}&quot; expression=&quot;true&quot;&gt;<u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in">      &lt;action application=&quot;answer&quot;/&gt;<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">      &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;<u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in">      &lt;action application=&quot;speak&quot; data=&quot;flite|kal|Say the license number&quot;/&gt;<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">      &lt;action application=&quot;detect_speech&quot; data=&quot;pocketsphinx dot_license dot_license&quot;/&gt;<u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in">

    &lt;/condition&gt;<u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in">  &lt;/extension&gt;<u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in">&lt;/include&gt;<u></u><u></u></p><p class="MsoNormal">

<u></u> <u></u></p><p class="MsoNormal">But after enabling speech detection it just hangs up. How can I let the caller respond and collect/use the result from a dialplan?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>

<p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:navy">Chad Engler</span></b><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Telephony Programmer</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;;color:gray">PATLive</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray"><a href="tel:1.800.775.7790%20x746" value="+18007757790" target="_blank">1.800.775.7790 x746</a></span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray"><a href="mailto:chad.engler@patlive.com" target="_blank"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:gray">chad.engler@patlive.com</span></a><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Hosted Communications | Friendly Service    </span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#4067cd"><a href="http://www.patlive.com/" target="_blank"><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#4067cd">www.patlive.com</span></a></span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray"><u></u><u></u></span></p>

<p class="MsoNormal"><u></u> <u></u></p></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div></div>