mardi 13 mai 2014

captureAudio returns wav fromat. Needed to record in mp3 format

Hii,

Is there a way to capture audio or video in mp3 format.

Ext.device.Capture.captureAudio()


returns in wav format in my iphone. (By the way, I enabled cordova.)


In forums I found this post related with capturing audio in mp3 format:

http://ift.tt/QF9dg5

It uses cordova Media library like:



Code:



var src = "mysound.mp3";
var mediaRec = new Media(src, onSuccess, onError);
// Record audio
mediaRec.startRecord();

Is this the only way to make it in mp3 format?

My main purpose is to make the data smaller before sending to the server.

Best regards,

Emre





Aucun commentaire:

Enregistrer un commentaire