Hi, I'm attempting to record audio via MediaRecorder at 48khz regardless of my microphone's sample rate.
I'm on firefox 59. My microphone records audio at a sample rate of 44.1khz. However, MediaRecorder outputs OGG Opus audio at 48khz. Here's how I'm using MediaRecorder https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder#Example. I would have expected 48khz output per OpusTrackEncoder https://github.com/mozilla/gecko-dev/blob/a341b32d064bafac5422f72fef6afe740045105c/dom/media/encoder/OpusTrackEncoder.cpp#L162 and this bug https://bugzilla.mozilla.org/show_bug.cgi?id=922247. Am I wrong in undrestanding that MediaRecorder should resample to 48khz if the microphone's sample rate is non-standard? _______________________________________________ dev-media mailing list [email protected] https://lists.mozilla.org/listinfo/dev-media

