This is my code...
What I want to do:
- Record the audio of the user save it as a blob
- Make the recorded audio equal to the value of the file input tag...
What I have achieved:
- Recording and converting to blob is done
How do I make the value of the input file tag equal to the blob?
mediaRecorder.addEventListener("stop", () => {
const audioBlob = new Blob(audioChunks, { 'type' : 'audio/wav; codecs=MS_PCM' });
const audioUrl = URL.createObjectURL(audioBlob);
// document.querySelector('#id_audio').value = 'How to do this?';
});
Any help is highly appreciated!
Thanks a lot!