Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-07-04 Thread Bruce B
Hey Zaf, Just checking the Google Speech Recognition package again and I can't see WolframAlpha.agi file. I check all of your projects on Git hub but can't find wolframalpha.agi. Please let us know what the URL is. Thanks, Bruce On Thu, Jan 12, 2012 at 2:49 PM, Lefteris Zafiris

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-12 Thread Danny Nicholas
Discussion Subject: Re: [asterisk-users] Speech recognition in asterisk using google voice API On 01/07/2012 09:34 AM, Bruce B wrote: 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

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-12 Thread Lefteris Zafiris
On 01/12/2012 05:50 PM, Danny Nicholas wrote: Two more offerings - #1 - add DTMF parameter so function can be stopped by pressing a digit or digits other than * or # - #2 - add an option to silence the beep. If you were using this in an IVR and wanted to say press 1 or say help for help,

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-07 Thread Lefteris Zafiris
On 01/07/2012 09:34 AM, Bruce B wrote: 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

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-06 Thread Bruce B
Does sox have more features on a Debian system than RHEL? Is that why it won't work on RHEL? Cheers, On Wed, Jan 4, 2012 at 6:42 PM, Lefteris Zafiris zaf@gmail.com wrote: Fresh code is out! The use of sox can be now optionally enabled by the user if the system has a recent version of the

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-06 Thread Lefteris Zafiris
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

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-06 Thread Bruce B
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

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-06 Thread Bruce B
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,

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-06 Thread Bruce B
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

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Lefteris Zafiris
On 01/04/2012 07:51 AM, Bruce B wrote: And with recent version 14.3.2 I get: /usr/local/bin/sox FAIL formats: no handler for file extension `flac' -- speech-recog.agi: /usr/local/bin/sox failed: 512 -- SIP/-002eAGI Script speech-recog.agi completed, returning 0 Regards,

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Julian Lyndon-Smith
this looks great - is there any chance of coverting the googletts.agi to use flac as well ? Julian On 4 January 2012 09:06, Lefteris Zafiris zaf@gmail.com wrote: On 01/04/2012 07:51 AM, Bruce B wrote: And with recent version 14.3.2 I get: /usr/local/bin/sox FAIL formats: no handler for

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Lefteris Zafiris
On 01/04/2012 04:07 PM, Julian Lyndon-Smith wrote: this looks great - is there any chance of coverting the googletts.agi to use flac as well ? Julian In googletts.agi we get the voice data from google in mp3 and we convert it in a format that asterisk can read and playback (slin). If we

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Julian Lyndon-Smith
the only reason is that I didn't want to have to install sox. Lazy. that's all ;) Just another piece of software to find and install running on amazon ec2, is the best thing to download the source and compile sox ? Thanks Julian On 4 January 2012 14:18, Lefteris Zafiris zaf@gmail.com

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Lefteris Zafiris
On 01/04/2012 04:24 PM, Julian Lyndon-Smith wrote: the only reason is that I didn't want to have to install sox. Lazy. that's all ;) Just another piece of software to find and install running on amazon ec2, is the best thing to download the source and compile sox ? Thanks It should be

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Julian Lyndon-Smith
nope :( On 4 January 2012 14:29, Lefteris Zafiris zaf@gmail.com wrote: On 01/04/2012 04:24 PM, Julian Lyndon-Smith wrote: the only reason is that I didn't want to have to install sox. Lazy. that's all ;) Just another piece of software to find and install running on amazon ec2, is the

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Bruce B
Note to self: Never release anything asterisk related without testing on RHEL/Centos 5 Thank you for reporting this. I have replaced sox with flac and it seems to work now on older platforms too (tested on Centos 5 with asterisk 1.4). You can get the updated code here:

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread isrlgb
Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Speech recognition in asterisk using google voice API -- _ -- Bandwidth and Colocation Provided by http

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Michelle Dupuis
[asterisk-users-boun...@lists.digium.com] On Behalf Of Bruce B [bruceb...@gmail.com] Sent: Wednesday, January 04, 2012 1:25 PM To: Asterisk Users List Subject: Re: [asterisk-users] Speech recognition in asterisk using google voice API Note to self: Never release anything asterisk related without

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Lefteris Zafiris
On Wed, Jan 4, 2012 at 8:47 PM, Michelle Dupuis mdup...@ocg.ca wrote: Wow - nice!  A few quick questions: 1.  How long can the recording be for translation? At the moment the recording timeout is set at 15sec. I haven't tested yet the max length of voice data ta google accepts (all this voice

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Lefteris Zafiris
On Wed, Jan 4, 2012 at 8:27 PM, isr...@gmail.com wrote: Does anyone know what languages are supported? For sure english and spanish, since its undocumented i don't have a complete list yet. Lefteris Zafiris --

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Lefteris Zafiris
Works beautifully. Amazing job Lefteris. Thanks. The best result I got in probability was 0.9725632 by saying, hello. I think there is some non-phonetic logic built-in as well. I tried, 1, 2 and I got 0.86534226 in accuracy. While I tried 1, 2, 3, 4, 5 I got, 0.97256315. Probably Google

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread sean darcy
On 1/4/2012 2:26 PM, Lefteris Zafiris wrote: Works beautifully. Amazing job Lefteris. Thanks. The best result I got in probability was 0.9725632 by saying, hello. I think there is some non-phonetic logic built-in as well. I tried, 1, 2 and I got 0.86534226 in accuracy. While I tried 1, 2, 3,

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Israel Gottlieb
wow i just tried in hebrew and i'll say just 1 word WOW On Wed, Jan 4, 2012 at 9:48 PM, sean darcy seandar...@gmail.com wrote: On 1/4/2012 2:26 PM, Lefteris Zafiris wrote: Works beautifully. Amazing job Lefteris. Thanks. The best result I got in probability was 0.9725632 by saying, hello.

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Lefteris Zafiris
On Wed, 04 Jan 2012 14:48:22 -0500 sean darcy seandar...@gmail.com wrote: This is really spectacular. Thanks. I'm running Fedora 15, so I can use flac or sox. Any reason to prefer one over the other? sean We have to convert the voice data to flac format before sending them to google,

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-04 Thread Lefteris Zafiris
Fresh code is out! The use of sox can be now optionally enabled by the user if the system has a recent version of the program (won't work in RHEL/Centos 5) This is done by editing the script and setting the variable 'use_sox'. When sox is used the audio gets normalized, low frequency noise (100Hz)

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-03 Thread Bruce B
Very interesting. I just tried to get it to work but it complains about sox. Probably you used a different version of sox? *PBX-*CLI /usr/bin/sox: invalid option -- -* */usr/bin/sox: invalid option -- n* */usr/bin/sox: invalid option -- o* */usr/bin/sox: -r must be given a positive integer* * --

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-03 Thread Bruce B
And with recent version 14.3.2 I get: /usr/local/bin/sox FAIL formats: no handler for file extension `flac' -- speech-recog.agi: /usr/local/bin/sox failed: 512 -- SIP/-002eAGI Script speech-recog.agi completed, returning 0 Regards, On Wed, Jan 4, 2012 at 12:43 AM, Bruce B

Re: [asterisk-users] Speech recognition in asterisk using google voice API

2012-01-03 Thread LL
Hi there, I've developed an agi script a while ago to use google speech recognition and by then I've used http://legroom.net/files/software/convtoflac.sh to convert files from wav to flac. You can the use the command: */usr/local/bin/convtoflac.sh -o /var/lib/asterisk/sounds/myfile.wav* It