Right now, I am working on a project which uses the SparkFun Sound Detector to detect the ambient noise. I, further need to record the ambient noise to go forward with the project. Hence I was thinking that if I could use the audio and envelope output to record the data in a CSV format and then converting it to a (.wav) file. But unfortunately, I have not been able to achieve my goal due to some lack of knowledge about the said sensor (like the sampling rate of the sensor) while giving me the output from the audio and the envelope pin.
I would be really grateful if anyone can assist me with the Arduino code to store the proper information needed in a CSV file. so that I can later convert the CSV file to a (.wav) format file.