Page 1 of 1

CEF Speech API

PostPosted: Tue Feb 14, 2017 12:54 pm
by tgraupmann
It seems CEF lacks support for the Speech API.

The Google Speech Demo:
https://www.google.com/intl/en/chrome/demos/speech.html

Here are three tests that work in the Chrome browser, but not in CEF.

Demo 01 Unity Speech Dictation: https://theylovegames.com/UnityWebGLSpe ... Dictation/

Demo 02 Unity Speech Commands: https://theylovegames.com/UnityWebGLSpe ... hCommands/

Demo 01 Unity Speech Synthesis: https://theylovegames.com/UnityWebGLSpe ... 1Synthesis

Re: CEF Speech API

PostPosted: Tue Feb 14, 2017 2:27 pm
by magreenblatt

Re: CEF Speech API

PostPosted: Tue Feb 14, 2017 2:32 pm
by tgraupmann
Thanks. Shortly after posting I realized the keys need to be added.

I'd like to avoid using Google cloud services because like the G+ Hangouts API, Google retires useful services all the time. (RIP Google Reader, RIP Google WAVE).

The 50 requests cap with no option for a paid plan is unfortunate. Currently Google Chrome is the only browser that implemented the detection part of the Speech API.

All the other popular browsers implemented the Speech Synthesis API with varying degrees of completeness.

Re: CEF Speech API

PostPosted: Wed Feb 15, 2017 8:19 pm
by tgraupmann
I found the issue. There are several Speech APIs. You need to search and activate the API that says...

"Speech API Private API The Speech API allows developers to access Google speech-recognition services. It is only available for development and personal use."

All the tests work now.

Re: CEF Speech API

PostPosted: Fri Feb 17, 2017 3:31 pm
by tgraupmann
I have everything working but on one computer the security settings are blocking the microphone.

If your GOOGLE API keys are bad you'll click the microphone button in the chrome speech demo and it clickers.

But in this other case, the keys are right, and it's waiting to allow the microphone on a different computer...?

"Click the "Allow" button above to enable your microphone."

There isn't an allow dialog???

Re: CEF Speech API

PostPosted: Fri Feb 17, 2017 4:04 pm
by magreenblatt
We don't provide authorization dialogs (that's the job of the client application). Assuming it takes the same code path as Geolocation permissions you can set a breakpoint in CefPermissionContext::SupportsPermission and see what kind of permission it's requesting. In that case you can implement a callback similar to CefGeolocationHandler. Note that we only support and test functionality in CEF that can be verified with the default build (e.g. without API keys).

Re: CEF Speech API

PostPosted: Fri Feb 17, 2017 5:35 pm
by tgraupmann
It was the same issue again, missing `--enable-speech-input` command-line args. So that's the reason for the microphone permission issue.

Re: CEF Speech API

PostPosted: Sat Feb 18, 2017 12:11 am
by tgraupmann
I think periodically throughout the day, the auth tokens just stop working. It's across all my computers. When it's working, they all work. Of course the official Chrome detection always works. But the auth tokens that I generated only work for part of the day. It's probably because it's still a beta service...

http://www.chromium.org/developers/how-tos/api-keys

Those keys ^^^^

https://cloud.google.com/speech/support

Beta: This is a Beta release of Google Cloud Speech API. This product is not intended for real time usage in critical applications. This product is not covered by any SLA or deprecation policy and may be subject to backward-incompatible changes.


Google Cloud Machine Learning isn't even listed on the Google cloud status page:

https://status.cloud.google.com/

**BETA**

Re: CEF Speech API

PostPosted: Sun Feb 19, 2017 5:29 pm
by tgraupmann
I think for whatever reason is there's a quota of 50 requests total per day for a developer using the Chromium Speech API.

It's not a requests per second limit. It's a number of requests limit...

Image

As the tooltip shows, the eval has a max quota of 50 queries per day.

Re: CEF Speech API

PostPosted: Mon Jul 13, 2020 5:29 am
by amyacker
tgraupmann wrote:I think periodically throughout the day, the auth tokens just stop working. It's across all my computers. When it's working, they all work. Of course the official Chrome detection always works. But the auth tokens that I generated only work for part of the day. It's probably because it's still a beta service...

http://www.chromium.org/developers/how-tos/api-keys

Those keys ^^^^

https://www.folio3.ai/technology/google ... t-service/

Beta: This is a Beta release of Google Cloud Speech API. This product is not intended for real time usage in critical applications. This product is not covered by any SLA or deprecation policy and may be subject to backward-incompatible changes.


Google Cloud Machine Learning isn't even listed on the Google cloud status page:

https://status.cloud.google.com/

**BETA**


Thanks, This is helpful, i know its an old thread, but i cant generate key using google api, Invalid key occured :/