|
|
@ -100,7 +100,7 @@ function record_audio(){
|
|
|
|
document.getElementById("audio-player-container").innerHTML = sound.outerHTML;
|
|
|
|
document.getElementById("audio-player-container").innerHTML = sound.outerHTML;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let file = new File([audioBlob], "audio.ogg",{type:"audio/mpeg"});
|
|
|
|
let file = new File([audioBlob], "audio.mp3",{type:"audio/mpeg"});
|
|
|
|
let container = new DataTransfer();
|
|
|
|
let container = new DataTransfer();
|
|
|
|
container.items.add(file);
|
|
|
|
container.items.add(file);
|
|
|
|
document.getElementById("uploadedFile").files = container.files;
|
|
|
|
document.getElementById("uploadedFile").files = container.files;
|
|
|
|