Change sample rate of AudioContext (getUserMedia)

后端 未结 7 2198
粉色の甜心
粉色の甜心 2020-12-08 10:07

Im trying to record a 48000Hz recording via getUserMedia. But without luck. The returned audio MediaStream returns 44100Hz. How can i set this to 48000Hz?

Here are s

相关标签:
7条回答
  • 2020-12-08 11:02

    It looks like there is an open bug about the inability to set the sampling rate:

    https://github.com/WebAudio/web-audio-api/issues/300

    There's also a Chrome issue:

    https://bugs.chromium.org/p/chromium/issues/detail?id=432248

    I checked the latest Chromium code and there is nothing in there that lets you set the sampling rate.

    Edit: Seems like it has been implemented in Chrome, but is broken currently - see the comments in the Chromium issue.

    0 讨论(0)
提交回复
热议问题