MediaCapture Audio Path

I am using MediaCapture plugin to record audio but i cant figure out the absolute path.attached my code below
this.mediaCapture.captureAudio(option)
.then(
async (data: MediaFile) => {
const lastMessage: any = _.nth(this.messages, -1);
const url = ‘file://’ + data[0].fullPath.substring(0,data[0].fullPath.lastIndexOf(’/’)+1);
this.file.readAsArrayBuffer(url, data[0].name.toString())
.then((body) => {
this.submitAudio(body);
})
.catch(error=>{
this.toastMessage.displayMessage(error);
})
})
.catch(error=>{
this.toastMessage.displayMessage(error);
})
sometimes its working and sometimes its not.Thanks in advance.