Fiz um app, para gravar audio, ele abre a gravador nativo, mas não retorna o audio para view.
.controller('MyCtrl', function ($scope, $cordovaCapture) {
$scope.captureAudio = function () {
var captureSuccess = function (mediaFiles) {
var i, path, len;
for (i = 0, len = mediaFiles.length; i < len; i += 1) {
path = mediaFiles[i].fullPath;
// do something interesting with the file
}
};
// capture error callback
var captureError = function (error) {
navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error');
};
// start audio capture
navigator.device.capture.captureAudio(captureSuccess, captureError, {
limit: 2
});
}
});