x-webkit-speech已被删除。用于< input>的简单语音输入的JS替换 [英] x-webkit-speech is deprectated. A JS replacement for simple speech input for <input>?

查看:172
本文介绍了x-webkit-speech已被删除。用于< input>的简单语音输入的JS替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Chrome devtool的控制台中发现了这个警告:

I noticed this warning in Chrome devtool's console:


x-webkit-speech 不推荐使用输入字段属性。请改用JavaScript API。

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

那么输入字段上简单语音输入的最佳JS API替代是什么?

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

也许存在一个可以为我处理它的插件JS模块?

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

推荐答案

回答我自己的问题:

为此目的做了一个Github项目: https://github.com/Daniel-Hug/speech-input

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

这篇关于x-webkit-speech已被删除。用于< input>的简单语音输入的JS替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆