Quantcast
Viewing all articles
Browse latest Browse all 28

HTML5 Speech Input 语音输入

HTML5支持语音输入功能, Chrome 浏览器 自 11 版本 也开始支持语音识别功能,现在使网站增加语音输入功能变得非常简单。

Image may be NSFW.
Clik here to view.
HTML5 Speech Input 语音输入

实例预览:

HTML5 语音识别代码很简单,只需要在 text 字段加上 x-webkit-speech 属性即可。

  • HTML代码:<input type=”text” x-webkit-speech />
  • XHTML代码: <input type=”text” x-webkit-speech=”x-webkit-speech” />

Viewing all articles
Browse latest Browse all 28

Trending Articles