Reputation: 500
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
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.data
s to a ByteArray
and then save it with FileReference.save()
Upvotes: 0
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