ezeikel
ezeikel

Reputation: 97

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?

Upvotes: 0

Views: 1141

Answers (3)

Max Yu
Max Yu

Reputation: 41

I gave up Firefox ... Firefox never stop the speaking so it cannot speak twice.. and even the cancel() command does not work at all.

see below commands on firefox: firefox speech synthesis not work

Upvotes: -1

danny
danny

Reputation: 11

objSpeaker = new SpeechSynthesisUtterance(); 

Must be called every time in Firefox

Upvotes: 1

David Crane
David Crane

Reputation: 93

Experimental technology likely not handled correctly by Firefox.

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

Upvotes: 2

Related Questions