INNER CODE UNIT · JavaScript
populateVoiceList
ChatFAQ/ChatFAQ · widget/store/index.js:276
function populateVoiceList() {
if (typeof speechSynthesis === "undefined")
return;
state.speechSynthesisVoices = speechSynthesis.getVoices();
state.speechVoicesInitialized = true;
}
if (typeof speechSynthesis !== "undefined") {
speechSynthesis.onvoiceschanged = populateVoiceList;
}
populateVoiceList()
}
return false
}