Skip to content

speechSynthesis.speak() without user activation is no longer allowed #102

Open
@sjjhsjjh

Description

@sjjhsjjh

Current Dasher Version Six logs the following error on load in some cases:

[Deprecation] speechSynthesis.speak() without user activation is no longer allowed since M71, around December 2018. See https://www.chromestatus.com/feature/5687444770914304 for more details

This happens if Speak On Stop is selected at page load time. I think it's because Dasher speaks the phrase "Speech is now active" at that time to warn the user that their browser will make noises.

Not sure what to do about this but maybe defer speaking the warning until the user moves the pointer or does something else that counts as activation.

Looks like current code to speak the warning is here:

this._speech.speak(

That's the UI listener though, which gets invoked by the control panel value loader. Awkward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions