showing results for - "js narrate text"
Christian
22 Jul 2018
1// Narrate some text:
2var msg = new SpeechSynthesisUtterance('Hello world!');
3window.speechSynthesis.speak(msg);
4
5// Cancel the narration:
6window.speechSynthesis.cancel();