Shih-En Chou Shih-En Chou - 16 days ago 5
Javascript Question

Record Audio Stream from getUserMedia

In recent days, I tried to use javascript to record audio stream.
I found that there is no example code which works.

Is there any browser supporting?

Here is my code

navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia || navigator.msGetUserMedia;

navigator.getUserMedia({ audio: true }, gotStream, null);
function gotStream(stream) {

msgStream = stream;
msgStreamRecorder = stream.record(); // no method record :(
}

Answer

You could check this site: https://webaudiodemos.appspot.com/AudioRecorder/index.html

It stores the audio into a file (.wav) on the client side.