static const int frequency = 16000;
- sets the sampling frequency to 20 KHz.
Some kind of data truncation, for sure. Unless a typo.
In the same universe that:
Microphones are components that convert physical sound into digital data.
Strange ![]()
Quite recent
LAST REVISION: 05/10/2022, 14:00
You do not see those a lot indeed. The language reference calls it internal linkage if I recall correctly.
True, but unnecessary: const implies internal linkage in C++*. If you want a constant with external linkage, you have to explicitly mark it extern const.
(*) It doesn't in C.
Maybe the 16000 used to be something else, and when they changed it to 16000, they forgot to make the comment say 16 kHz, and left it as 20 kHz?
It is documentation, there should be no maybe
You mean there is no maybe?
Probably just a typo. Looks like you can make a correction and issue a PR on GitHub to fix it.
correct it to 20000 or 16 KHz?
I think the comment about 20kHz is wrong based on what it says down in the actual code sample where it recommends 16kHz for Nano33 and 32 or 64kHz for Portenta-H7.
Yeah about that, Nano 33 doesn’t have a microphone, Nano Connect does
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.