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

Downsample to 8Khz #42

Open
tehmaestro opened this issue Dec 14, 2014 · 4 comments
Open

Downsample to 8Khz #42

tehmaestro opened this issue Dec 14, 2014 · 4 comments

Comments

@tehmaestro
Copy link

Hi. Thank you so much for this, it is a great tool. I noticed the minimum sample rate is 22050. Is it possible to change it and make it as low as 8000?
If yes, can you guide toward how I can achieve this. Thank you very much!

@michalstocki
Copy link
Owner

Hi,
Yes, you can achieve this simply by calling:

 FWRecorder.configure(8);

You can also test such configuration thorough the demo page: http://michalstocki.github.io/FlashWavRecorder/html/

There is a mistake in documentation:

Currently we only support 44 and 22.

@tehmaestro
Copy link
Author

Thanks, but it doesn't work.
I checked the file with ffmpeg -i filename.wav , and it's 22.

@michalstocki
Copy link
Owner

Ok. It seems that the frequencies lower than 22kHz are supported only for playback. Before export to .wav file, the recording is always approximated to 22 or 44kHz.
The issue is quite complex. I think it's possible to achieve but earlier I should split the whole horrible MicrophoneRecorder into smaller pieces. I'm a contributor of this library only recently, but the major part of the code base is quite aged 🏰, so I would need a lot of time to do this.

@tehmaestro
Copy link
Author

It's ok then. No problems :), thanks for the help anyway.

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

No branches or pull requests

2 participants