Raj A.N.T. Gounder
Raj A.N.T. Gounder

Reputation: 500

How to record using microphone and save it in local disk drive?

I got the code

var mic:Microphone = Microphone.getMicrophone(); 
mic.setUseEchoSuppression(true); 
mic.setLoopBack(true);

when I browse thru adobe documentation for microphone access. But I could not find a way to record the sound and save it in the local drive.
How to store the sound in local drive???

Thank you for the help...

Upvotes: 0

Views: 1104

Answers (2)

www0z0k
www0z0k

Reputation: 4434

To capture microphone audio, listen for the sampleData events dispatched by a Microphone instance. The SampleDataEvent object dispatched for this event contains the audio data. © as3 reference

so you need to record SampleDataEvent.datas to a ByteArray and then save it with FileReference.save()

Upvotes: 0

Marty
Marty

Reputation: 39466

One step you'll need to complete is making sure your application is developed as an AIR Application. You won't have access to saving a file unless this is the case.

As for the recording, here's a really great package you can use for this.

Upvotes: 1

Related Questions