Record sound in browser

If you want to record the sound from the microphone input in the browser, you can do it today via Flash. (Afaik there is currently no other good option that works in browsers.)

Is there a simple swf plugin that allows this? That is, with the parameters "Start recording", "Stop recording", "Get a wave of recorded sound (or similar)."

+3
source share
3 answers

This question is a little old, but I recently had to answer it myself and found the following article most useful:

http://www.html5rocks.com/en/tutorials/getusermedia/intro/

With HTML 5, you can completely avoid Flash and just use

<input type="file" accept="audio/*;capture=microphone"> 

Flash ( , ), - .

+5

FlashPlayer 10.1 SampleData () .

microphoneInstance = Microphone.getMicrophone();    
microphoneInstance.addEventListener(SampleDataEvent.SAMPLE_DATA, sampleDataHandler);

//will contains your microphone RAW sound data
buffer = new ByteArray();
function sampleDataHandler(event:SampleDataEvent):void
{              
    while(event.data.bytesAvailable > 0)
        buffer.writeFloat(event.data.readFloat());
}

( ), ( - ) WAV :

MicRecorder, Thibault Imbert MicRecorder - AS3 Google

( ), , MP3:

http://unitzeroone.com/labs/rtmic2mp3/

+1
+1
source

All Articles