[Freeswitch-users] mod_pocketsphinx dialplan example

Dave R. Kompel drk at drkngs.net
Tue Feb 12 23:51:44 MSK 2013


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 at patlive.com]
To: FreeSWITCH Users Help [mailto:freeswitch-users at 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 at patlive.com  
   
Hosted Communications | Friendly Service    www.patlive.com  
       
   
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130212/332743e6/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list