CEF Speech API

Do ALL testing here!

CEF Speech API

Postby tgraupmann » Tue Feb 14, 2017 12:54 pm

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
Last edited by tgraupmann on Wed Feb 15, 2017 10:06 am, edited 1 time in total.
tgraupmann
Techie
 
Posts: 16
Joined: Tue Feb 14, 2017 12:51 pm

Re: CEF Speech API

Postby magreenblatt » Tue Feb 14, 2017 2:27 pm

magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Speech API

Postby tgraupmann » Tue Feb 14, 2017 2:32 pm

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.
tgraupmann
Techie
 
Posts: 16
Joined: Tue Feb 14, 2017 12:51 pm

Re: CEF Speech API

Postby tgraupmann » Wed Feb 15, 2017 8:19 pm

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.
tgraupmann
Techie
 
Posts: 16
Joined: Tue Feb 14, 2017 12:51 pm

Re: CEF Speech API

Postby tgraupmann » Fri Feb 17, 2017 3:31 pm

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???
tgraupmann
Techie
 
Posts: 16
Joined: Tue Feb 14, 2017 12:51 pm

Re: CEF Speech API

Postby magreenblatt » Fri Feb 17, 2017 4:04 pm

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).
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Speech API

Postby tgraupmann » Fri Feb 17, 2017 5:35 pm

It was the same issue again, missing `--enable-speech-input` command-line args. So that's the reason for the microphone permission issue.
tgraupmann
Techie
 
Posts: 16
Joined: Tue Feb 14, 2017 12:51 pm

Re: CEF Speech API

Postby tgraupmann » Sat Feb 18, 2017 12:11 am

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**
tgraupmann
Techie
 
Posts: 16
Joined: Tue Feb 14, 2017 12:51 pm

Re: CEF Speech API

Postby tgraupmann » Sun Feb 19, 2017 5:29 pm

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.
tgraupmann
Techie
 
Posts: 16
Joined: Tue Feb 14, 2017 12:51 pm

Re: CEF Speech API

Postby amyacker » Mon Jul 13, 2020 5:29 am

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 :/
amyacker
Newbie
 
Posts: 2
Joined: Mon Jul 13, 2020 5:22 am
Location: Oregon, USA


Return to Test Me

Who is online

Users browsing this forum: No registered users and 2 guests