I'm recording with p5.js library but i need to convert the soundFile object to a javascript file object to send it to an audio server.
how can archieve this?
my code is something like this:
mic = new p5.AudioIn();
mic.start();
recorder = new p5.SoundRecorder();
recorder.setInput(mic);
soundFile = new p5.SoundFile();
$("#record").on("click", function{
recorder.record(soundFile);
})
$("#stop").on("click", function{
recorder.stop();
})
$("#send").on("click", function{
//here i need to convert soundFile object to file object
myuploadfile(file)
})
soundFile.path.