Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head><meta charset="utf-8"></head>
<body>
<script>
function go() {
let voices = speechSynthesis.getVoices();
if (voices.length === 0) {
speechSynthesis.onvoiceschanged = go;
return;
}
speechSynthesis.onvoiceschanged = null;
let teresa = voices.find(v => v.voiceURI === "urn:moz-tts:fake:teresa");
if (!teresa) return;
let u = new SpeechSynthesisUtterance("hello");
u.voice = teresa;
u.onstart = () => {
setTimeout(() => {
speechSynthesis.cancel();
}, 200);
};
u.onend = () => {
try {
FuzzingFunctions.cycleCollect();
FuzzingFunctions.garbageCollect();
FuzzingFunctions.cycleCollect();
} catch(e) {}
};
speechSynthesis.speak(u);
}
window.onload = go;
</script>
</body>
</html>