Handle network error on synthesis
compulim opened this issue · 0 comments
compulim commented
Today, when network error happened while synthesizing, it will not emit and "error" event.
The correct behavior should be "start" event followed by "error" event.
Network error
Testing against server-based voice.
- Speak an utterance
- Expect: receive
start
event - (A few seconds later)
- Expect: receive
error
event of typeSpeechSynthesisErrorEvent
error
field set to"synthesis-failed"
utterance
field set to the `SpeechSynthesisUtterance instanceelapsedTime
field is set
- There will be no
end
event