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.
4 Answers
Reset to default 1This 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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745671318a4639419.html
评论列表(0条)