ANE Record and Convert Audio in many formates
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
actionscript
bin
build
ios
README.md

README.md

ANE-RecordAudio

ANE Record and Convert Audio in many formates

//Demo
setTimeout(function():void{
	trace('Begin');
	RecordAudio.instance.startRecord('test1');
},
3000);

setTimeout(function():void{
	RecordAudio.instance.stopRecord(function(url:String):void{
		var f:File = new File(url);
		trace(f.exists, url);
	});
	trace('Stoped');
}, 6000);
setTimeout(function():void{
	//You can convert to MP3
	RecordAudio.instance.toMp3(function(url):void{
		var f:File = new File(url);
		trace(f.exists, url);
	});
	//AMR is the smallest record format
	RecordAudio.instance.toAMR(function(url):void{
		var f:File = new File(url);
		trace(f.exists, url);
		RecordAudio.playAmr(url, volume, callback);
	});
}, 8000);