var msg = new SpeechSynthesisUtterance("hello World"); console.log(msg); window.speechSynthesis.speak(msg);