【发布时间】:2015-02-04 18:41:43
【问题描述】:
我正在尝试使用 node webkit 构建一个应用程序,该应用程序在 chrome 浏览器中运行良好,并且某些文本到语音 api 在 node webkit (windows) 中无法正常工作。当我使用 webkit 调试器在控制台中进行一些检查时,我可以看到
speechSynthesis.getVoices()
没有任何声音。如何解决这个问题?
var voiceOutput = new SpeechSynthesisUtterance("sample message");
voiceOutput.voice = speechSynthesis.getVoices()[0];
speechSynthesis.speak(voiceOutput);
【问题讨论】:
-
我正在使用适用于 windows 32 位的最新版本的 node webkit....
标签: javascript webkit node-webkit