Skip to content
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

How to specify sample and bit rates for the recording? #659

Closed
abhijeet-toptal opened this issue Feb 18, 2022 · 3 comments
Closed

How to specify sample and bit rates for the recording? #659

abhijeet-toptal opened this issue Feb 18, 2022 · 3 comments

Comments

@abhijeet-toptal
Copy link

Is there a way I can specify the following while recording:

Channels: 1
Sample Rate: 16000
Precision: 16-bit
Bit Rate: 256k
Sample Encoding: 16-bit Signed Integer PCM

I have seen the recordings done via native MediaRecorder have got a single channel and less sample and bit rates.

@abhijeet-toptal
Copy link
Author

@chrisguttandin can you please check this?

@chrisguttandin
Copy link
Owner

The number of channels and the sample rate is determined by the MediaStream that you record. At least that's how it should be. If you experience something different it's probably a bug.

There is currently no way to define the bit depth. Luckily it's hardcoded to 16 bit.

Does this answer your question?

@chrisguttandin
Copy link
Owner

I'm closing this since I recently added a description on how to change the sampleRate as part of #674.

There is already already another issue (#643) which tracks the missing audioBitsPerSecond option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants