Why is SpeechSynthesisUtterance so buggy?
Is the SSML XML format a fairy tale?
The code goes something like this ...
var txt = document.getElementById("txt").value;
var speech = new SpeechSynthesisUtterance(txt);
speech.rate = 0.8;
window.speechSynthesis.speak(speech);
Please take a look at this demo site to see the state of affairs in various browsers and devices:
https://www.crql.in/dev/speak.html
(all the code is in the HTML file)
The onboundary
chasing seems too fast compared to the voice...
Or may be there is some bug in my code?
My Ubunutu Chrome doesn't respond to onboundary
at all but Windows one does.
Of course, none of them respond to SSML tags at all (but some of them are even crazy enough to speak-up the XML tags)...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…