最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Speech recognition in browsers other than Chrome? - Stack Overflow

programmeradmin1浏览0评论

How can I access a microphone using JavaScript or HTML5 without using Flash? I made it work in Chrome using webkit-speech. I need to do it in other browsers. Any answers will be appreciated.

How can I access a microphone using JavaScript or HTML5 without using Flash? I made it work in Chrome using webkit-speech. I need to do it in other browsers. Any answers will be appreciated.

Share Improve this question edited Jul 7, 2012 at 5:07 Colin Brock 21.6k9 gold badges49 silver badges62 bronze badges asked Jul 7, 2012 at 4:54 NattoNatto 2231 gold badge4 silver badges18 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 1

This is a feature proposed by Google, and appears to only be supported in their products.

See: https://stackoverflow./a/6619632/1504847

Check out this tutorial. It may help you. http://www.html5rocks./en/tutorials/getusermedia/intro/

At this point, it only expands your options to opera however... For Firefox and IE (along with others like Midori, ect) you will still need to rely on plugins.... Hopefully as HTML5 gets closer to being an official standard, we will see widespread support.

  • x-webkit-speech works only for Chrome
  • there is a html5 attribute with the same purpose: speech.
    However right now it doesn't work neither on Chrome 31.xx neither on Firefox 25

This is w3c doc page for the <input> attribute speech

Look at this project: https://github./TalAter/annyang

It is quite good SpeechRecognition library. You can see how it was done.

发布评论

评论列表(0)

  1. 暂无评论