Re: Aborting speech recognition when web page looses focus

On 08/16/2012 05:57 PM, Hans Wennborg wrote:
> Hi all,
>
> The current spec draft lists four security and privacy considerations
> [1], summarized as:
>
> 1. The UA must ask for explicit informed user consent before starting
> any recording
> 2. The UA must clearly indicate when it's recording
> 3. The UA may give a longer explanation the first time speech
> recognition is used
> 4. The UA must abort any active speech input session if focus moves
> away from the web page.
>
> Points one and two seem to me to be the critical points to ensure the
> user's privacy. They also line up nicely with the requirements for
> accessing a user's microphone or webcam through the GetUserMedia API
> [2].
>
> I propose that we remove the last point. I think it unnecessarily
> reduces the usefulness of the speech recognition API. For example, a
> user wouldn't be allowed to use a speech-enabled application in one
> window, and at the same time interact with another window next to it.
>
> What do you think?


Well, if 2. can be implemented so that it is always clear which site is recording
user's speech, then 4. might not be too important.
But doing 2. in such strict way can be very hard from the UI perspective.

So, as for v1 API, it would be better to be more strict and keep 4.

(This is somewhat similar case as pointerlock, which is now enabled only in fullscreen, and
browser vendors are trying to figure out safe way to enable it in non-fullscreen mode too.
IIRC Chrome has some pref to enable it for non-fullscreen, but I'm not convinced the approach is safe enough yet.)



-Olli



>
> Thanks,
> Hans
>
> [1]. http://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#security
> [2]. http://dev.w3.org/2011/webrtc/editor/getusermedia.html
>

Received on Thursday, 16 August 2012 15:33:27 UTC