Answers for "js tts"

1

js tts

var msg = new SpeechSynthesisUtterance();
msg.text = "Hello World";
window.speechSynthesis.speak(msg);
Posted by: Guest on November-10-2020
0

js narrate text

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

// Cancel the narration:
window.speechSynthesis.cancel();
Posted by: Guest on July-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language