x-webkit-speech is deprectated. A JS replacement for simple speech input for <input>?

本秂侑毒 提交于 2020-01-09 19:04:57

问题


I noticed this warning in Chrome devtool's console:

The x-webkit-speech input field attribute is deprecated. Please use the JavaScript API instead.

So what's the best JS API replacement for simple speech input on input fields?

Perhaps there exists a drop-in JS module that will handle it for me?


回答1:


Answering my own question:

Just made a Github project for this purpose: https://github.com/Daniel-Hug/speech-input




回答2:


There is a JavaScript SpeechRecognition API that does text-to-speech and speech-to-text. Not many browsers support it but Chrome should have support.



来源:https://stackoverflow.com/questions/23188951/x-webkit-speech-is-deprectated-a-js-replacement-for-simple-speech-input-for-in

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