Google Speech API V2
Asked Answered
G

1

16

I have followed this link to generate API keys, but the Speech API was not found on the console.

The application example I'm following is here: https://github.com/gillesdemey/google-speech-v2/

I keep on getting an error:

Your client does not have permission to get URL.

What's the problem?

Gird answered 21/10, 2014 at 11:25 Comment(1)
Did you read the bold yellow warning at the top of the Chromium page you linked to?Geez
B
29

You have to be a member of chromium-dev discussion list before you can enable the Speech API in your Google Developers Console.

  1. Go to Chromium Dev group and click Join the list. Do not post to the group regarding the Google Speech API, as it is completely off topic.

  2. Go back to Google Developers Console, select your project, enter APIs & Auth / APIs. You'll now see Speech API. Click to enable it.

  3. Go to Credentials, Create new Key, Server Key. You may optionally specify a list of IPs, for security.

You now may make queries to Google Speech API v2. Keep in mind that this is an experimental API, and limited to 50 queries per day per project.

Here's an example (using Linux):

arecord -D plughw:2,0 -f cd -t wav -d 10 -r 16000 | \
flac - -f --best --sample-rate 16000 -o out.flac; \
wget -O - -o /dev/null --post-file out.flac --header="Content-Type: audio/x-flac; rate=16000" \
"http://www.google.com/speech-api/v2/recognize?lang=en-us&key=ADD_YOUR_KEY_HERE&output=json" | \
sed -e 's/[{}]/''/g'
Bidding answered 9/11, 2014 at 21:5 Comment(7)
The reason you have to join chromium-dev is that the API is only intended to be used for Chromium development. Joining that group in order to try to get access to the API for some other use is solving the wrong problem. If you aren't doing Chromium development, you shouldn't use the API.Geez
Wanted a proper way to use the google speech apis, if not for chromium-dev since it is applicable for many business cases. cloud.google.com/speech is available now. Still only allowing 2 minutes - will check if possible to use on larger files.Crossland
Does google speech to text APIs are available for public use. Can you please provide the documentation link for the APIs, I am unable to find it so. ThanksPurchase
@Sanket: a lot has happened since my original answer, so your best bet option is to use the new Speech API, part of Google Cloud. Unfortunately it's not yet publicly available; you need to apply and wait for the invite.Bidding
how to apply for beta version @GuiAmbrosNevers
@chetanpanchal: Cloud Speech API is now available publicly; no need to apply for any beta. See cloud.google.com/speechBidding
thanks @GuiAmbros I am already using google speech to text cloud api version1(google.cloud.speech.v1), I want to use version2(google.cloud.speech.v1p1beta1) do you know from where I will be able to get its access, I have tried git repository but it gives me stable version 1Nevers

© 2022 - 2024 — McMap. All rights reserved.