speech-api "Your client does not have permission" issue

2,973 views
Skip to first unread message

ci...@eyekraft.ru

unread,
May 15, 2014, 10:01:39 AM5/15/14
to chromi...@chromium.org
Hello!

What I need to do for get access to "https://www.google.com/speech-api/v2/recognize"?

1. I'm subcribe to Chromium-dev
2. activate Speech API
3. generate API key for Simple API Access and add IP of my server
4. change URL in my script from "/speech-api/v1/recognize" to "/speech-api/v2/recognize"
5. add "&key=AIzaSy..."

but receive message:
 403. That’s an error.
Your client does not have permission to get URL /speech-api/v2/recognize?lang=en-us&key=AIzaS.........&userIp=188.......... from this server.  That’s all we know.

I'm read some discussion about (like https://gist.github.com/alotaiba/1730160), but found nothing useful.

Where is my mistake?

Thank you for any advice!

Primiano Tucci

unread,
May 15, 2014, 10:37:11 AM5/15/14
to ci...@eyekraft.ru, Chromium-dev
That speech webservice is not meant to be used by anything else but chrome. There is no such "Google Speech Webservice" for your own applications AFAIK.
Also that endpoint that you're referring to (both v1 and v2) is related to an old feature that we dropped in Chrome in the last milestone (i.e. the <input x-webkit-speech>) in favor of the new Web Speech API, that's probably the reason why the server endpoint has been dropped as well.




--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Boris Taran

unread,
May 15, 2014, 11:00:37 AM5/15/14
to chromi...@chromium.org
Add 127.0.0.1 to the allowed IP list in your API credentials menu.
It helped me.

четверг, 15 мая 2014 г., 18:01:39 UTC+4 пользователь ci...@eyekraft.ru написал:

Primiano Tucci

unread,
May 15, 2014, 11:14:51 AM5/15/14
to gluk...@gmail.com, Chromium-dev
You're using an endpoint for a deprecated API which is meant to be used only by Chrome.
Whatever workaround you'll find out, will stop working.


ci...@eyekraft.ru

unread,
May 16, 2014, 1:12:54 AM5/16/14
to chromi...@chromium.org, gluk...@gmail.com
>Whatever workaround you'll find out, will stop working.
more useful sell it to every one.
Now 50 requests/day is free, but I'm ready to buy it when traffic will increase.
We use it for our Asterisk server to route from Skype to SIP by voice and for survey after Helpdesk and Hotline for calls from Skype.

Also insteresting for us to recognize records about 5-30 minutes for transcribe recorded consultations with Helpdesk and Hotline.
But current Speech API limits flac to 10-15 seconds. Unfortunatly.

Boris Taran, thank you for advice!

четверг, 15 мая 2014 г., 19:14:51 UTC+4 пользователь Primiano Tucci написал:

Primiano Tucci

unread,
May 16, 2014, 4:57:28 AM5/16/14
to ci...@eyekraft.ru, Chromium-dev, Boris Taran
This mailing list is about chrome development. It is not a general Google WebService help desk.
Refer to https://developers.google.com for these kind of requests.

You just chose hack some code out of chromium, which was not even marginally meant to be a public API, and base your product on a hack (and probably made money out of that).
That is, in my humble opinion, simply a wrong engineering decision.

Hải Nguyễn Tuấn

unread,
Nov 26, 2016, 6:10:42 AM11/26/16
to Chromium-dev

Matt Giuca

unread,
Nov 27, 2016, 6:43:31 PM11/27/16
to ha...@gosol.com.vn, Chromium-dev
See the large yellow warning at the top of this page:

If you are asking for the purpose of Chromium development, there are some tips here:
(note that API access is intentionally very limited for developers)

If you are asking for something other than Chromium development, this is the wrong list. Please see the Cloud Speech API.

Reply all
Reply to author
Forward
0 new messages