Closed kityun closed 2 years ago
js: const synth = window.speechSynthesis; const msg = new SpeechSynthesisUtterance(); function talk(text){ msg.text = text; msg.lang = 'zh-CN'; msg.volume = '1'; msg.rate = 1; msg.pitch = 1; synth.speak(msg); }
w.Eval("talk('test')") No voice
js: const synth = window.speechSynthesis; const msg = new SpeechSynthesisUtterance(); function talk(text){ msg.text = text; msg.lang = 'zh-CN'; msg.volume = '1'; msg.rate = 1; msg.pitch = 1; synth.speak(msg); }
w.Eval("talk('test')") No voice