Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.SpeechSynthesisEvent - .utterance is not supported by iOS Safari #16864

Closed
12Me21 opened this issue Jul 7, 2022 · 1 comment · Fixed by #25702
Closed

api.SpeechSynthesisEvent - .utterance is not supported by iOS Safari #16864

12Me21 opened this issue Jul 7, 2022 · 1 comment · Fixed by #25702
Assignees
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@12Me21
Copy link

12Me21 commented Jul 7, 2022

What type of issue is this?

Incorrect support data (ex. Chrome says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

compat data claims that SpeechSynthesisEvent's utterance property has been supported since iOS safari 7 (from ~2013), but this property doesn't exist

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

No response

Did you test this? If so, how?

I've checked the properties of a SpeechSynthesisEvent instance on iOS Safari 15.5 (latest version), and it only has the following:

  • Own keys:
    • isTrusted
  • From SpeechSynthesisEvent.prototype:
    • constructor
    • charIndex
    • elapsedTime
    • name
    • @@toStringTag
  • (as well as keys from Event.prototype and Object.prototype)

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

It also seems that iOS Safari doesn't have a SpeechSynthesis class, only the window.speechSynthesis instance, which has no .constructor and inherits from Object instead of EventTarget.
So, it's not possible to attach events to SpeechSynthesis, only SpeechSynthesisUtterance (which does inherit from EventTarget)

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent

MDN metadata

MDN page report details
  • Query: api.SpeechSynthesisEvent
  • Report started: 2022-07-07T06:47:39.905Z
@queengooborg queengooborg added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jul 7, 2022
@caugner
Copy link
Contributor

caugner commented Jan 17, 2025

Tested via BrowserStack Live and a local server printing the result of Object.keys(SpeechSynthesisEvent.prototype):

  • ❌ iOS 11.2 - only charIndex, elapsedTime, name
  • ❌ iOS 12.3 - only charIndex, elapsedTime, name
  • ❌ iOS 13.3 - only charIndex, elapsedTime, name
  • ❌ iOS 13.6 - only charIndex, elapsedTime, name
  • ❌ iOS 14.0 - only charIndex, elapsedTime, name
  • ❌ iOS 14.7 - only charIndex, elapsedTime, name
  • ❌ iOS 15.0 - only charIndex, elapsedTime, name
  • ❌ iOS 15.4 - only charIndex, elapsedTime, name
  • ✅ iOS 16.0 - utterance, charIndex, charLength, elapsedTime, name
  • ✅ iOS 16.5 - utterance, charIndex, charLength, elapsedTime, name
  • ✅ iOS 17.0 - utterance, charIndex, charLength, elapsedTime, name
  • ✅ iOS 17.1 - utterance, charIndex, charLength, elapsedTime, name
  • ✅ iOS 18.0 - utterance, charIndex, charLength, elapsedTime, name
  • ✅ iOS 18.2 - utterance, charIndex, charLength, elapsedTime, name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants