最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin8PV0评论

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.

Post a comment

comment list (0)

  1. No comments so far