Сделал так:
async function createFile(){
let response = await fetch(uri);
let data = await response.blob();
let metadata = {
type: 'audio/mpeg-3'
};
let file = new File([data], "questionAudio.mp3", metadata);
const formData = new FormData();
formData.append('audio-file', file);
formData.append('action', 'sendBlob');
return $.ajax({
url: document.location.href,
data: formData,
processData: false,
contentType: false,
type: 'POST',
success: function(data){
var res = JSON.parse(data, true);
resField.val(res);
}
});
}
createFile();