I am using a Sparkfun Electret Microphone with Arduino Pro-Mini to stream audio over serial port. The goal is to create a wav file from the audio data.
The wav file header requires "sampling frequency" as one of the entries in the header. Here are my questions:
- How can I check what is the current audio frequency of the analogReads from the microphone on my arduino
- How can I configure/change some settings in my arduino pro mini to get a sampling rate of 16 kHz (that's what one of my applications that will consume the WAV file requires)