Javascript getVoices()总是在Debian+;ARM&x2B;铬
我正在ARM板(ASUS Tinker板)上运行Debian 9.3(32位)上的Chromium 63.0 调用SpeechSynthesis.getVoice()函数总是返回一个空数组 我直接调用函数并返回空数组 我添加了回调函数:Javascript getVoices()总是在Debian+;ARM&x2B;铬,javascript,linux,chromium,speech,Javascript,Linux,Chromium,Speech,我正在ARM板(ASUS Tinker板)上运行Debian 9.3(32位)上的Chromium 63.0 调用SpeechSynthesis.getVoice()函数总是返回一个空数组 我直接调用函数并返回空数组 我添加了回调函数: if (typeof speechSynthesis !== 'undefined' && speechSynthesis.onvoiceschanged !== undefined) { console.log("Set callback
if (typeof speechSynthesis !== 'undefined' && speechSynthesis.onvoiceschanged !== undefined) {
console.log("Set callback function ..")
speechSynthesis.onvoiceschanged = populateVoiceList;
}
但它再次返回空数组。我看到console.log输出,因此应该支持成员
当然,speak()函数不会生成任何声音,即使我运行了最小值:
speechSynthesis.speak(new SpeechSynthesisUtterance('Ciao'))
我使用--enable speech dispatcher选项运行浏览器,浏览器表示不支持该选项。是否应该从版本33开始支持它