Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

stackoverflow narrate text js

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

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