How to access to the microphone in JS?

Danny Fox picture Danny Fox · May 18, 2012 · Viewed 8.6k times · Source

The webcam is supported already in Opera Next, but what about microphone support? Do you know something about it?

Answer

Allan Kimmer Jensen picture Allan Kimmer Jensen · May 18, 2012

I know that there is a spec located here: http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html

And that webkit supports it like this: http://www.labnol.org/software/add-speech-recognition-to-website/19989/

The correct code would be:

<input x-webkit-speech type="text" />