I'm trying to record audio with an Arduino I did this with TMRpcm. This time I need half a second or 1 second of recorded sound and I want to save the sample in an array.
I installed the Arduino bootloader on STM32F103C8 And I connected the microphone preamplifier to the analog pin of the microcontroller. But the problem is that I do not know how to get the sample rate in Arduino.
What do you need help with? You know how to code an array of int. And you know how to count the sample number. You know how to move the sample to the next array entry.
Paul
I am sorry. I misread your posting. I thought you were wanting to move the SAMPLES to an array. But, I see you want to determine the rate of sampling and move it to an array. Are you able to determine the sampling rate and what have you found?