How to make audio capture with HTML5 and Javascript?

1
I'm doing research on audio recording with HTML5, but none of the tutorials I've found worked, many of them use getUsermedia (), but it seems to me that it's deprecated so someone could present me with a practical example that really works for capturing audio with PC microphone with HTML5 and Javascript.

I found this question from Leandro Costa, but I could not implement the response code.

    
asked by anonymous 14.02.2016 / 16:33

1 answer

1

In the media it is not always easy to make a solution that works across browsers. In addition, in some cases it may be necessary to enable specific flags in Chrome for example. The function you mention is the most widespread API.

A cool source of concepts you can pick up on this post from Eric Bidelman ( original version ).

To begin with, a very interesting live demo is here: link

The author has a blog with more information on Audio Recording via web . W3C has a specification in progress, but is still in draft .

Finally, depending on your needs, WebRTC may be the best alternative: link . There are good examples on the project website such as audio capture by microphone .

    
14.02.2016 / 22:46