Skip to content

feat: ability to pause the audio #269

@anuraagdjain

Description

@anuraagdjain

Is your feature request related to a problem? Please describe.
The speak icon doesn't have the ability to pause the speech, and if accidentally clicked on a long message, the user has to close the browser tab to fully terminate the speech.

image

Describe the solution you'd like
A clear and concise description of what you want to happen.

From the MDN docs, we could use .speaking and .pause() methods to

  1. Show the pause icon when window.speechSynthesis.speaking is true
  2. call the window.speechSynthesis.pause() function instead of .speak(message) in this function.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions