Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js narrate text

// Narrate some text:
var msg = new SpeechSynthesisUtterance('Hello world!');
window.speechSynthesis.speak(msg);

// Cancel the narration:
window.speechSynthesis.cancel();
 
PREVIOUS NEXT
Tagged: #js #narrate #text
ADD COMMENT
Topic
Name
3+2 =