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.
Asked
Active
Viewed 7,547 times
4

Colin Brock
- 21,267
- 9
- 46
- 61

Natto
- 213
- 1
- 4
- 17
4 Answers
1
This is a feature proposed by Google, and appears to only be supported in their products.

Community
- 1
- 1

Steve McGuire
- 1,467
- 12
- 8
0
Check out this tutorial. It may help you. http://www.html5rocks.com/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.

retrohacker
- 3,194
- 4
- 21
- 31
0
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

WonderLand
- 5,494
- 7
- 57
- 76
-1
Look at this project: https://github.com/TalAter/annyang
It is quite good SpeechRecognition library. You can see how it was done.

Piotrek
- 10,919
- 18
- 73
- 136
-
2annyang only works in Chrome. While the code is using different prefixes, it is only there to ensure forward compatibility. – Corkscreewe Aug 06 '14 at 12:09