Web Speech API - SpeechGrammar

ぃ、小莉子 提交于 2019-12-10 11:19:26

问题


So I was looking through the Web Speech API documentation, and I came across this

https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-speechgrammar

Is it possible to use a SpeechGrammar object as a dictionary of words that the api understands?


回答1:


Yes. That is exactly what it is for. MDN has a description of how to do recognition here:

https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition

And a few open source examples that also make great starter code here:

https://github.com/mdn/web-speech-api



来源:https://stackoverflow.com/questions/28481339/web-speech-api-speechgrammar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!