react-speech-kit icon indicating copy to clipboard operation
react-speech-kit copied to clipboard

Speech does not stop on page refresh

Open swap0804 opened this issue 3 years ago • 2 comments

on the refresh of page, speech does not stop

swap0804 avatar Nov 08 '22 07:11 swap0804

I am also facing this issue, does this issue get addressed?

vivek07542 avatar Jul 07 '23 13:07 vivek07542

I solved this in a very rustic and not recommended way, but if you are using a layout file that is imported in all of your pages, include:

React.useEffect(() => { window.speechSynthesis.cancel() }, []);

Don't laugh at me, I'm not a good developer, but it works lol

lisandropat avatar Sep 18 '23 15:09 lisandropat