Hey Nick,
That problem is indeed solved. Thanks!
But I have two new questions:
-
You had a good proposal above about audio compression via webm, ... (which I hadn't thought about so I started struggling with mp3 in the past). But I see this in the current code:
mediaRecorder = new MediaRecorder(stream, {mimeType: 'audio/webm'});
Does this mean you already use webm?
But then I wouldn't expect to get WAV chunks? I'm lost ... -
And it is not clear to me how this field works:
I understand from the MediaRecorder documentation, that the timeslice is being used as the length of EACH chunk:
But when I specify N seconds, then I get the audio only after N seconds in my Node-RED flow. And after N seconds the recording stops automatically. I would have expected to get every N seconds an audio chunk (N seconds long chunks), until I press the button to stop recording. Or am I mistaken?
Thanks again!