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

Sampling Rate #29

Closed
aalanwar opened this issue Jul 27, 2017 · 2 comments
Closed

Sampling Rate #29

aalanwar opened this issue Jul 27, 2017 · 2 comments

Comments

@aalanwar
Copy link

Hi,

Excuse me, I would like to ask about the sampling rate which is used in the "micarray_recorder" Demo?
I reduced the time to 5 seconds and build so
uint16_t seconds_to_record = 5;
And I am getting 160000 samples for every channel, which means that the sampling rate is
160000/5 = 32000
Am I missing some thing?

I notice this definition in this file
const uint32_t kSamplingRate = 16000;

What is wrong? Could you please clarify ?

@ghost
Copy link

ghost commented Oct 15, 2017

The sampling rate is fix to 16000. So if you just need 5 seconds data, you will get 516000 for one channel; and you will get 516000*8 "int16_t" for all channels.

@kdpatino
Copy link
Contributor

Hello!

Now we support frequencies from 8KHz to 96KHz let's check https://github.com/matrix-io/matrix-creator-hal/blob/master/cpp/driver/microphone_array.h#L31.

Also, You could check the Kernel driver implementation:
https://github.com/matrix-io/matrixio-kernel-modules

Regards,

Kevin Patino

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