ESP32 SD Card Audio Recording
atomic14
In this video, we record audio to an SD Card as a WAV file and then play it back. As always the code is on GitHub: https://github.com/atomic14/esp32_sdcard_audio
I'm using an I2S microphone in the video which I've set up to use DMA to collect the samples. These are streamed straight to the SD Card and we create the WAV file header so that it's a valid file.
For playback, I'm using an I2S 3W amplifier board from Adafruit. This is connected to a 4ohm speaker. Once again we use DMA to transfer the samples which are streamed from the SD Card.
You should be able to modify the code to use the built-in ADC and an analogue microphone board, and you can modify the code to output using the DAC which would let you wire this up to headphones or an analogue amplifier.
I think I might turn this into a nice little voice memo device.
Want to help support the channel? I'm accepting coffee on https://ko-fi.com/atomic14 ... https://www.youtube.com/watch?v=bVru6M862HY
77801815 Bytes