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?
You have to be a member of chromium-dev discussion list before you can enable the Speech API in your Google Developers Console.
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.
Go back to Google Developers Console, select your project, enter APIs & Auth / APIs. You'll now see Speech API. Click to enable it.
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'