bagaimana melakukan teks ke ucapan dalam javascript

var msg = new SpeechSynthesisUtterance();
msg.text = "Hello World";
window.speechSynthesis.speak(msg);
Jumpy Coder