zaf / asterisk-speech-recog

Speech recognition script for Asterisk that uses google's speech engine.
GNU General Public License v2.0
245 stars 131 forks source link

Already adapted my app to the new speech-recog.agi (speech API v2) still doesn't work #12

Closed nicobcn closed 9 years ago

nicobcn commented 9 years ago

Hi, I've tried the AGI perl script with both "server application" and "browser application" API KEYs generated from my Developer console (Speech API)

Also tried these 4 settings on the "allowed IPs" field:

  1. (blank, "any IP allowed")
  2. my server's IP address
  3. my server's IP address and 127.0.0.1
  4. my server's IP address, 127.0.0.1 and my server's public IP address

But still no luck. The script returns blank values for confidence and utterance.

My quota for the Speech API still 0%, so it's not even accepting/logging these tests.

Any ideas on what may I'm doing wrong? Is anyone aware of a origin-country limitation for this API?

Thanks in advance.

zaf commented 9 years ago

First step is to enable debug in the script, without any detailed data there is no way to guess what is wrong in this case.

nicobcn commented 9 years ago

Wow....my bad. I was missing one of the required dependencie (perl JSON) that's why the API's response looked like if it was empty... My apologies.

Thank you,