Jak zrobić tekst do mowy w JavaScript

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