C-like:
Simple code is as follows.
const int soundPin = 35;
int sound = 0;
void setup() {
Serial.begin(9600);
delay(1000);
}
void loop() {
sound = analogRead(soundPin);
Serial.println(sound);
delay(3);
}
I am using an ESP32 with an adafruit max4466 microphone. I am testing the quality of audio files picked up using simple ADC read before switching to different techniques. It would be easy to save the files to an external SD card connected right to the ESP32, but I do not have that at hand currently. So, my question is how can I save my data to a wav file on my laptop to listen to the audio? I do not believe Arduino IDE has the library's to do this so a python script will be needed. So if someone could point me in the right direction that would be greatly appreciated.
And yes I know that reading the values strictly from the ADC will not be a clean nor high quality audio this is just where I am starting this project.
serial plotter shows recognizable sound patterns and confirms its functionality.
Last edited by a moderator: