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

后端 未结 2 711
有刺的猬
有刺的猬 2020-12-14 18:15

I noticed this warning in Chrome devtool\'s console:

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

2条回答
  •  半阙折子戏
    2020-12-14 18:47

    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.

提交回复
热议问题