var sound = function (text) { let utterance = new SpeechSynthesisUtterance(text); return window.speechSynthesis.speak(utterance); };