Skip to content

[html] 第100天 HTML5怎么为输入框添加语音输入的功能呢? #979

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第100天 HTML5怎么为输入框添加语音输入的功能呢?

Activity

xiangshuo1992

xiangshuo1992 commented on Jul 25, 2019

@xiangshuo1992
Contributor

<input type=”text” speech x-webkit-speech />

liuxiaole

liuxiaole commented on Jul 25, 2019

@liuxiaole

x-webkit-speech input 在 chrome 中已经废除了(没查到从哪个版本开始),不过本来这个也只是 chrome 的私有功能,不算 HTML5 规范。目前 chrome 中可以使用 JS 版的语音识别 API: https://caniuse.com/#search=speech%20recognition

这个 API 目前还在草案阶段: https://w3c.github.io/speech-api/

NicholasBaiYa

NicholasBaiYa commented on Jul 25, 2019

@NicholasBaiYa

<input type=”text” speech x-webkit-speech />

服务需要走google的服务器

xuxihua

xuxihua commented on Mar 21, 2020

@xuxihua

<input type=”text” speech x-webkit-speech />
原理:在人说话时接收语音,然后放到谷歌后台,谷歌自己写的语音识别系统,再返回数据
缺陷:
只支持google11以上的浏览器
现在谷歌需要翻墙,此功能会失效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @liuxiaole@haizhilin2013@xiangshuo1992@NicholasBaiYa@xuxihua

        Issue actions

          [html] 第100天 HTML5怎么为输入框添加语音输入的功能呢? · Issue #979 · haizlin/fe-interview