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 record audio with mono MP3 output format #36

Open
kamshory opened this issue Sep 3, 2019 · 1 comment
Open

How to record audio with mono MP3 output format #36

kamshory opened this issue Sep 3, 2019 · 1 comment

Comments

@kamshory
Copy link

kamshory commented Sep 3, 2019

Here is my code:

_this.recorder = new WebAudioRecorder(_this.input, {
				workerDir: "js/", // must end with slash
				encoding: _this.encodingType,
				numChannels:2, //2 is the default, mp3 encoding supports only 2
				onEncoderLoading: function(recorder, encoding) {
				},
				onEncoderLoaded: function(recorder, encoding) {
				}
			});

I want to save mono MP3s to save storage space and speed up data transfer.

@andreszs
Copy link

andreszs commented Feb 16, 2020

It seems your best option in this case is to lower the bitRate to 64, because numChannels must always be 2 for some encoder-related reason.

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