Home » Asterisk Users » Speech-recog.agi
Asterisk Users 4 Comments

I want to try using google for speech recognition in Asterisk and I
found a ready made AGI:


I have followed all the steps listed in the web site but I keep getting this error:

AGI Tx >> 200 result=99981 (timeout) endpos=22720
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 --

4 thoughts on - Speech-recog.agi

  • 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?

  • 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

  • Argh! Of course, you are correct! I had not noticed that either – why does he hide the working version right at the end?!

    Anyway, that is your immediate requirement resolved, but I will still post python version for anyone who wishes for it, soon!