kbumsik / opus-media-recorder

MediaRecorder polyfill for Opus recording using WebAssembly
http://kbumsik.io/opus-media-recorder/
Other
308 stars 39 forks source link

Any way to change the sample rate? #61

Open homerlex opened 2 years ago

homerlex commented 2 years ago

This line intsantiates the AudioContext without any options:

https://github.com/kbumsik/opus-media-recorder/blob/daddd0aa5934ac955e05a2d0c599aab9b73454de/src/OpusMediaRecorder.js#L372

So, the sampleRate on the reocrding is always 48000 regardless of what I specify in my getUserMedia constraints.

Is there any way to override this?

ai-nikolai commented 1 year ago

Any updates on that?

Both sampleRate and audioChannels would be really great.