I want to try using google for speech recognition in Asterisk and I found a ready made AGI: http://zaf.github.io/asterisk-speech-recog/ I have followed all the steps listed in the web site but I keep getting this error: <PJSIP/2001-0000006e>AGI Tx >> 200 result=99981 (timeout) endpos=22720 <PJSIP/2001-0000006e>AGI Rx << VERBOSE "Unable to get recognition data." 3 I made sure all the dependencies are met and that my API key for Google Cloud Speech is correct (cut and paste). Any pointers to get this to work or any other quick waysto start using Google for speech recognition in Asterisk? Thanks. -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez +52 (55)8116-9161
That's because it uses a deprecated API and endpoint. However, funny you should ask this, because I've just finished updating my Google TTS routine to take advantage of the new streamlined API. If you can wait a couple of days, I've stick it up on the repo - BUT... it's going to require python3.5+, the way I do it... Would that work for you? On 19 October 2017 at 18:41, Carlos Chavez <cursor at telecomab.mx> wrote:> I want to try using google for speech recognition in Asterisk and I > found a ready made AGI: > > http://zaf.github.io/asterisk-speech-recog/ > > I have followed all the steps listed in the web site but I keep getting > this error: > > <PJSIP/2001-0000006e>AGI Tx >> 200 result=99981 (timeout) endpos=22720 > <PJSIP/2001-0000006e>AGI Rx << VERBOSE "Unable to get recognition data." 3 > > I made sure all the dependencies are met and that my API key for Google > Cloud Speech is correct (cut and paste). Any pointers to get this to work > or any other quick waysto start using Google for speech recognition in > Asterisk? Thanks. > > > -- > Telecomunicaciones Abiertas de M?xico S.A. de C.V. > Carlos Ch?vez > +52 (55)8116-9161 > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
If you'll release it for python, I'll take a stab at porting it to perl. Mike On October 19, 2017 4:53:52 PM EDT, Jonathan H <lardconcepts at gmail.com> wrote:>That's because it uses a deprecated API and endpoint. > >However, funny you should ask this, because I've just finished >updating my Google TTS routine to take advantage of the new >streamlined API. > >If you can wait a couple of days, I've stick it up on the repo - >BUT... it's going to require python3.5+, the way I do it... > >Would that work for you? > >On 19 October 2017 at 18:41, Carlos Chavez <cursor at telecomab.mx> wrote: >> I want to try using google for speech recognition in Asterisk and >I >> found a ready made AGI: >> >> http://zaf.github.io/asterisk-speech-recog/ >> >> I have followed all the steps listed in the web site but I keep >getting >> this error: >> >> <PJSIP/2001-0000006e>AGI Tx >> 200 result=99981 (timeout) >endpos=22720 >> <PJSIP/2001-0000006e>AGI Rx << VERBOSE "Unable to get recognition >data." 3 >> >> I made sure all the dependencies are met and that my API key for >Google >> Cloud Speech is correct (cut and paste). Any pointers to get this to >work >> or any other quick waysto start using Google for speech recognition >in >> Asterisk? Thanks. >> >> >> -- >> Telecomunicaciones Abiertas de M?xico S.A. de C.V. >> Carlos Ch?vez >> +52 (55)8116-9161 >> >> >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> Check out the new Asterisk community forum at: >> https://community.asterisk.org/ >> >> New to Asterisk? Start here: >> https://wiki.asterisk.org/wiki/display/AST/Getting+Started >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users > >-- >_____________________________________________________________________ >-- Bandwidth and Colocation Provided by http://www.api-digital.com -- > >Check out the new Asterisk community forum at: >https://community.asterisk.org/ > >New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > >asterisk-users mailing list >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Sent from my Android device with K-9 Mail. Please excuse my brevity. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20171019/89a4cadb/attachment.html>
On 10/19/17 3:53 PM, Jonathan H wrote:> That's because it uses a deprecated API and endpoint. > > However, funny you should ask this, because I've just finished > updating my Google TTS routine to take advantage of the new > streamlined API. > > If you can wait a couple of days, I've stick it up on the repo - > BUT... it's going to require python3.5+, the way I do it... > > Would that work for you? >Thank you. I just realized that I just needed to RTFM. There is a new version of the speech-recog agi that uses the Cloud Speech API. It is listed on the web site almost at the end. That one works perfectly. Of course alternatives are always welcome. -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez +52 (55)8116-9161