dom-examples icon indicating copy to clipboard operation
dom-examples copied to clipboard

[web-speech-api] Fixes speech utterance not stopping on reload in Chromium browsers

Open 4rnv opened this issue 1 year ago • 0 comments

Description: In the speech synthesis example at https://mdn.github.io/dom-examples/web-speech-api/speak-easy-synthesis/, the speech playback stops upon reloading the page in Firefox, but not in Chromium-based browsers (Brave, Edge, etc). The only way to stop the playback midway in Chromium is to close the tab or the browser itself. This inconsistency can be avoided by explicitly calling the speechSynthesis.cancel() method every time a window is closed or reloaded.

4rnv avatar May 25 '25 20:05 4rnv