Search code examples
javascriptfirefoxspeech-synthesis

Why can't SpeechSynthesis.speak() be called more than once in Firefox?


I can call SpeechSynthesis.speak() in Chrome multiple times and get some text read out over and over again. However, if i try the exact same code in Firefox, the first call works fine, but subsequent calls are ignored/silently fail.

It only works again once i refresh the page.

Why is this?


Solution

  • Experimental technology likely not handled correctly by Firefox.

    Try a SpeechSynthesis.cancel() before re-iterating your .speak() call.