let voice = new Wad({source: 'mic'})
let polywad = new Wad.Poly({
recorder: {
options: { mimeType : 'audio/webm' },
onstop: function(event) {
let blob = new Blob(this.recorder.chunks, { 'type' : 'audio/webm;codecs=opus' });
window.open(URL.createObjectURL(blob));
}
}
})
polywad.add(voice)
voice.play()
polywad.recorder.start()
// make some noise
setTimeout(function(){
polywad.recorder.stop() // a new window should open, where you can download the file you just created
}, 4000);
In both Chrome and firefox I get a low / barely audible mic recording.
Using the same setup/mic and getUserMedia() API, there are no quality issues - example code: https://web.dev/patterns/media/microphone-record/
My test code:
I have a hunch this might be causing the issue: https://stackoverflow.com/questions/67682297/i-developed-the-recording-using-the-javascript-web-audio-api-but-the-sound-qual
But I don't know how to apply the suggested solution (MediaStreamConstraints) to WAD.