Added two new features to the script: Timeout value and speechdata type. *exten => s,n,agi(speech-recog.agi,en-US,3000,phoneNumb)* - Will listen for 3 seconds and sanitize return as a single number without any spaces in between. This helps when one reads phone number in format 415-554-2323 and google returns, "415 554 2323" as result which is not very usable.
*exten => s,n,agi(speech-recog.agi,en-US,20000,string)* - Will listen for 20 second and return result as provided by Google untouched. It would be great to see them in future versions as I seem to need them dearly in a real life scenario. Updated script attached. -Bruce On Fri, Jan 6, 2012 at 11:03 PM, Bruce B <bruceb...@gmail.com> wrote: > NVM. I explored the code and see the logic. I had sox = 1 so it was > failing on RHEL. > > To report, my cell phone from a PRI gets same confidence level just like > SIP. Building my control app now. Should make my life much easier while > driving. Thanks again :-) > > -Bruce > > > On Fri, Jan 6, 2012 at 10:50 PM, Bruce B <bruceb...@gmail.com> wrote: > >> Thanks. >> >> I have been testing Aastra phones with SIP and had great results. I am >> testing my cell phone now and sometimes get "-1" for id, status, utterance, >> and confidence. What does that mean? >> >> Cheers >> >> >> On Fri, Jan 6, 2012 at 9:40 PM, Lefteris Zafiris <zaf....@gmail.com>wrote: >> >>> On Fri, 6 Jan 2012 20:46:14 -0500 >>> Bruce B <bruceb...@gmail.com> wrote: >>> >>> > Does sox have more features on a Debian system than RHEL? Is that why >>> > it won't work on RHEL? >>> > >>> RHEL's 5 version of sox is really old and outdated. The command syntax >>> and the switches are totally different compared to recent versions of >>> sox. >>> Anyway I'm not sure audio normalization and the rest we use sox for is >>> really needed. My tests so far didn't show any improvements in >>> detection rates. Keep in mind that all this is still WIP and the >>> option to use sox is more for testing than for serious use. >>> >>> ---------------- >>> Lefteris Zafiris >>> >>> >>> -- >>> _____________________________________________________________________ >>> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >>> New to Asterisk? Join us for a live introductory webinar every Thurs: >>> http://www.asterisk.org/hello >>> >>> asterisk-users mailing list >>> To UNSUBSCRIBE or update options visit: >>> http://lists.digium.com/mailman/listinfo/asterisk-users >>> >> >> >
speech-recog.agi
Description: Binary data
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users