Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Speech API V2

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?

like image 914
Gourish Goudar Avatar asked Oct 21 '14 11:10

Gourish Goudar


People also ask

Is Google's speech-to-text free?

The Google Speech-To-Text API isn't free, however. It is free for speech recognition for audio less than 60 minutes. For audio transcriptions longer than that, it costs $0.006 per 15 seconds. For video transcriptions, it costs $0.006 per 15 seconds for videos up to 60 minutes in length.

How do I add Google speech-to-text?

Android: Google Voice TypingInstall the Google Docs app, open a document, and tap the microphone icon located to the left of the space bar on the on-screen keyboard. Then talk. Google Voice Typing turns your speech into text.


1 Answers

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'
like image 184
Gui Ambros Avatar answered Nov 04 '22 18:11

Gui Ambros