This code help users to record sound and dump into SD card, later use ffmpeg and batch script to format into WAV
- ESP32 I2S devices
- FFmpeg in %PATH% (Windows system in this case) Tutorial link by wikihow
- SD Card
SPH0645 | ESP32 |
---|---|
WS | IO15 |
SD | IO32 |
BCK | IO14 |
VCC | 3.3V |
GND | GND |
SD Card | ESP32 |
---|---|
Chip select | IO26 |
Screen shot of serial monitor (BUADRATE: 115200)
-
Continue outputing
's'
means in "stand by mode", waiting for start command'a'
input. -
Enter
file name
-
Enter
recording time (sec)
-
Wait for
*** DONE WRITING ***
shows up and insert SD Card into PC -
Run
i2s_to_wav.bat
in folder where .i2s file locates (etc. SD Card) -
File would be format into wav file with timestamp
- 2023/07/27 Recording result sounds slightly faster, maybe due to mismatch of sample rate cause by SD card write time.