Intent to Remove: SpeechRecognitionEvent's interpretation and emma attributes

54 views
Skip to first unread message

Philip Jägenstedt

unread,
Jan 25, 2021, 4:16:03 PM1/25/21
to blink-dev

Contact emails

foo...@chromium.org

Specification

https://wicg.github.io/speech-api/ (does not have these attributes)

Summary

These attributes on the SpeechRecognitionEvent interface always return null, and were only added because they were at one point in the Web Speech API specification. They were removed from the specification in https://github.com/WICG/speech-api/pull/55.


I would like to deprecate the two attributes in M90 and remove them in M91. Risk of breakage is very low, but the deprecation message could help someone spot and remove unnecessary code.


The motivation for this is mainly to have the attributes out of the way if we unprefix SpeechRecognitionEvent, which is currently only accessible via the alias webkitSpeechRecognitionEvent.

Blink component

Blink>Speech


Risks



Interoperability and Compatibility


Gecko: Speech Recognition not shipped, but these attributes are in Gecko's IDL. However, from what I can tell, they're always null as well. There are Gecko bugs filed for removing both interpretation and emma.

Edge: No signals solicited, this is a trivial removal.

WebKit: Speech Recognition not shipped, and not in WebKit's IDL.

Web developers: No signals solicited, usage is super low and there's no reason to use these attributes.

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=986771

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5769608873115648

This intent message was generated by Chrome Platform Status. But had to be edited a lot by hand :)

Manuel Rego Casasnovas

unread,
Jan 28, 2021, 8:23:13 AM1/28/21
to Philip Jägenstedt, blink-dev
LGTM1

On 25/01/2021 22:15, Philip Jägenstedt wrote:
>
> Contact emails
>
> foo...@chromium.org
> <mailto:foo...@chromium.org>
>
>
> Specification
>
> https://wicg.github.io/speech-api/
> <https://wicg.github.io/speech-api/> (does not have these attributes)
>
>
> Summary
>
> These attributes on the SpeechRecognitionEvent interface always return
> null, and were only added because they were at one point in the Web
> Speech API specification. They were removed from the specification in
> https://github.com/WICG/speech-api/pull/55
> <https://github.com/WICG/speech-api/pull/55>.
>
>
> I would like to deprecate the two attributes in M90 and remove them in
> M91. Risk of breakage is very low, but the deprecation message could
> help someone spot and remove unnecessary code.
>
>
> The motivation for this is mainly to have the attributes out of the way
> if we unprefix SpeechRecognitionEvent, which is currently only
> accessible via the alias webkitSpeechRecognitionEvent.
>
>
> Blink component
>
> Blink>Speech
> <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink>Speech>
>
>
>
> Risks
>
>
> Very low. The usage for both is <0.00003%:
> https://www.chromestatus.com/metrics/feature/timeline/popularity/2481
> <https://www.chromestatus.com/metrics/feature/timeline/popularity/2481>
> https://www.chromestatus.com/metrics/feature/timeline/popularity/2482
> <https://www.chromestatus.com/metrics/feature/timeline/popularity/2482>
>
>
> Interoperability and Compatibility
>
>
> Gecko: Speech Recognition not shipped, but these attributes are in
> Gecko's IDL
> <https://github.com/mozilla/gecko-dev/blob/69babd862de70cabfa1d0a369d38e4881bd41e4d/dom/webidl/SpeechRecognitionEvent.webidl#L18-L19>.
> However, from what I can tell
> <https://github.com/mozilla/gecko-dev/blob/69babd862de70cabfa1d0a369d38e4881bd41e4d/dom/media/webspeech/recognition/SpeechRecognition.cpp#L568-L569>,
> they're always null as well. There are Gecko bugs filed for removing
> both interpretation
> <https://bugzilla.mozilla.org/show_bug.cgi?id=1567043> and emma
> <https://bugzilla.mozilla.org/show_bug.cgi?id=1567044>.
>
> Edge: No signals solicited, this is a trivial removal.
>
> WebKit: Speech Recognition not shipped, and not in WebKit's IDL
> <https://github.com/WebKit/WebKit/blob/5ee87b47fbddaea816d585d9612bb787948fa9f1/Source/WebCore/Modules/speech/SpeechRecognitionEvent.idl#L30-L32>.
>
> Web developers: No signals solicited, usage is super low and there's no
> reason to use these attributes.
>
>
> Tracking bug
>
> https://bugs.chromium.org/p/chromium/issues/detail?id=986771
> <https://bugs.chromium.org/p/chromium/issues/detail?id=986771>
>
>
> Link to entry on the Chrome Platform Status
>
> https://chromestatus.com/feature/5769608873115648
> <https://chromestatus.com/feature/5769608873115648>
>
> This intent message was generated by Chrome Platform Status
> <https://www.chromestatus.com/>. But had to be edited a lot by hand :)
>
> --
> You received this message because you are subscribed to the Google
> Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to blink-dev+...@chromium.org
> <mailto:blink-dev+...@chromium.org>.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYfRkDWnV_WRN4%3DQzd8Y3XjtHmmbwRybhuCPYTy1P-3mgA%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYfRkDWnV_WRN4%3DQzd8Y3XjtHmmbwRybhuCPYTy1P-3mgA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

yo...@yoav.ws

unread,
Jan 28, 2021, 2:48:32 PM1/28/21
to blink-dev, Manuel Rego, Philip Jägenstedt
LGTM2

Mike West

unread,
Jan 28, 2021, 3:08:34 PM1/28/21
to blink-dev, yo...@yoav.ws, Manuel Rego, Philip Jägenstedt
LGTM3.
Reply all
Reply to author
Forward
0 new messages