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

2012-07-04 Thread Lefteris Zafiris
On 07/04/2012 08:44 PM, Bruce B wrote: > 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 > It is und

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 wrote: > On 01

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 h

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

2012-01-12 Thread Danny Nicholas
2012 6:22 AM To: Asterisk Users Mailing List - Non-Commercial 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

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

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 goo

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
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 wrote: > On Fri, 6 Jan 2012 20:46:14 -0500 > B

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 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. An

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 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 program (won't w

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-04 Thread Lefteris Zafiris
On Wed, 04 Jan 2012 14:48:22 -0500 sean darcy 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, this can be done

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 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". I >>

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

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". Pro

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, 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 -- _ -- Bandwidth

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 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 recognition

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 wi

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

2012-01-04 Thread isrlgb
Subject: Re: [asterisk-users] Speech recognition in asterisk using google voice API -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every

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: > https://git

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 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 best thing t

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 sho

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 wrote: > On 01/04/201

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 w

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 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 file extensi

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 > -- AGI Script speech-recog.agi completed, returning 0 > > Regards, > > > On Wed,

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

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 -- AGI Script speech-recog.agi completed, returning 0 Regards, On Wed, Jan 4, 2012 at 12:43 AM, Bruce B wrote: > Very interestin

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* * --

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

2012-01-03 Thread Lefteris Zafiris
Hello, I have written an agi script that uses google voice API for voice recognition. The script records from the current channel untill the pound key (#) is pressed or the timeout (15 seconds) is reached. The recording is send over to google speech recognition service and the returned text string