jeremyjia / Games

Home Page Link:
https://jeremyjia.github.io/Games/
3 stars 8 forks source link

HTML5语音API SpeechSynthesisUtterance #948

Open jeremyjia opened 1 year ago

jeremyjia commented 1 year ago

需求:用此API实现象棋棋谱插件的语音播报(此API好像在App手机的浏览器上不工作)

jeremyjia commented 1 year ago

var utterThis = new window.SpeechSynthesisUtterance('你好,世界!'); window.speechSynthesis.speak(utterThis);