How to continue recognition in the Web Speech API without repeating the permissions info bar?

459 Views Asked by At

I'm a bit perplexed by the Web Speech API: namely, I've not figured out how to incrementally handle recognition.

Suppose I have three inputs:

<input id=a>
<input id=b>
<input id=c>

And I'd like to recognize three input words, shifting focus to the next input after each recognition. Is this possible using the API as it exists? The tutorials I've seen (such as this one seem to require repeated clicking on the permissions bar, which is super annoying.

Is there any way to set access to the microphone per-page-load or something like that?

1

There are 1 best solutions below

1
On BEST ANSWER

I think the only way to avoid the repeated "permission click" for a new recognition is to serve your page via https and have a valid certificate installed for your domain. This is a change that Google introduced in the last year.