我正在嘗試構建一個在Chrome瀏覽器中運行的節點webkit的應用程序,並且某些文本到語音API在節點webkit(windows)中無法正常工作。當我做了一些檢查與控制檯與webkit調試器我可以看到node webkit text to speech api not working?
speechSynthesis.getVoices()
沒有任何聲音。如何解決這個問題?
var voiceOutput = new SpeechSynthesisUtterance("sample message");
voiceOutput.voice = speechSynthesis.getVoices()[0];
speechSynthesis.speak(voiceOutput);
我正在使用最新版本的節點webkit的Windows 32位.... – balaphp