Skip to content Skip to sidebar Skip to footer

Speechsynthesis Stops Working After First Utterance In Firefox, But Works In Chrome

The problem is very simple, see JSfiddle. SpeechSynthesis works fine in Chrome, but mysteriously stops after the first utterance in FireFox. (Works for me in Safari as well.) Any i

Solution 1:

This is actually a known bug in Firefox.

The specs drafts are still not very clear about the re-usability of an utterance, but you can see this issue on w3c's github, where they agreed on the fact it should be.

For the time being, one workaround is to create a new utterance every time...

var synth = window.speechSynthesis;

synth.speak(newSpeechSynthesisUtterance('hello'));
synth.speak(newSpeechSynthesisUtterance('hello'));
synth.speak(newSpeechSynthesisUtterance('hello'));

Post a Comment for "Speechsynthesis Stops Working After First Utterance In Firefox, But Works In Chrome"