Thanks for the report. I followed the example you linked to the webapp it originated from and tested with that: https://mdn.github.io/web-dictaphone/
However, I was not able to reproduce your findings on linux with Firefox Nightly (63). With both a 48k source and a 44.1k source I get ogg/opus files of 48k. I checked the files with ffprobe and Audacity. Could you share more details on your setup and how you are checking the output files? Also, if you still see 44.1k files, do you mind filing a bug with all information that could help us reproduce and debug this at https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=Audio%2FVideo%3A%20Recording ? Thanks, Andreas On Thu, Jul 19, 2018 at 12:21 AM raycarino--- via dev-media < dev-media@lists.mozilla.org> wrote: > On Tuesday, July 17, 2018 at 12:09:04 PM UTC-7, Timothy B. Terriberry > wrote: > > raycarino--- via dev-media wrote: > > > Hi, I'm attempting to record audio via MediaRecorder at 48khz > regardless of my microphone's sample rate. > > > > Okay. > > > > > I'm on firefox 59. My microphone records audio at a sample rate of > 44.1khz. However, MediaRecorder outputs OGG Opus audio at 48khz. > > > > This is what you wanted, right? > Thank you for the quick reply! > > Sorry, for the typo. Expected: 48kHz output. Actual is 44.1kHz. It seems > that the resampling logic either failed or wasn't reached. > > > > > > I would have expected 48khz output > > > > What did you get that you didn't expect? > > _______________________________________________ > dev-media mailing list > dev-media@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-media > _______________________________________________ dev-media mailing list dev-media@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-media