-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any way to get audioBitsPerSecond #643
Comments
Unfortunately that's not yet implemented. I'm also not really sure how it's supposed to work. It doesn't work the same in Chrome and Firefox. On top of that the number returned in Chrome isn't always correct. In case you just want to know the 16 /* bitsPerSample */ * sampleRate * numberOfChannels |
I ended up parsing the wav file header and grabbing the info from that :) |
Okay, great. I think we should leave the issue open until it get's finally implemented. Just in case someone else needs this before I guess you used something like this to read the value from the first const arrayBuffer = await blob.arrayBuffer();
const dataView = new DataView(arrayBuffer);
const audioBitsPerSecond = dataView.getUint32(28, true); |
Yes that's exactly what I did! |
Hello! I would like to obtain the audioBitsPerSecond via: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/audioBitsPerSecond
Is there any way I can get this from the MediaRecorder object?
The text was updated successfully, but these errors were encountered: