SmK74 wrote:Forget to enable Speech API in google console... now all works
Which console? Because I'm in the same boat.
I followed the same steps.
http://www.chromium.org/developers/how-tos/api-keysI have got API keys, create 3 environment variable (GOOGLE_API_KEY, GOOGLE_DEFAULT_CLIENT_ID and GOOGLE_DEFAULT_CLIENT_SECRET) for current user and run
cefclient with --enable-speech-input flag.
Did that, but it's still not hitting the cloud services. I don't even see a blip in analytics. I hit the Microphone button which blinks and never works.
https://www.google.com/intl/en/chrome/demos/speech.htmlI tried setting environment vars as user vars and as system vars. No effect.
cefclient.exe --enable-speech-input
I even tried to set programatically.
- Code: Select all
System.Environment.SetEnvironmentVariable("GOOGLE_API_KEY", "...");
System.Environment.SetEnvironmentVariable("GOOGLE_DEFAULT_CLIENT_ID", "...");
System.Environment.SetEnvironmentVariable("GOOGLE_DEFAULT_CLIENT_SECRET", "...");
using (var application = new DemoAppImpl())
{
return application.Run(new string[] {
"--enable-speech-input",
});
}
I used the Google developer console.
https://console.developers.google.com/It should be active. I'm not sure what I missed...
Is there a way to pass the api keys on the command-line?
The docs mention a `args.gn` file.
I'd like to be able to set the api key at runtime.