jchv / go-webview2

WebView2 bindings for pure Go, without CGo, based on the webview/webview bindings.
Other
263 stars 64 forks source link

js window.talk No voice #55

Closed kityun closed 2 years ago

kityun commented 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