miketeachman / micropython-esp32-i2s-examples

Usage and examples for I2S support on the ESP32 microcontroller
MIT License
145 stars 29 forks source link

Added Mono Mic Recording to Flash memory Example #2

Closed MikeShi42 closed 5 years ago

MikeShi42 commented 5 years ago

Adds an example on how to record a mono mic to internal ESP32 flash memory for later listening.

Additionally corrects that the DMA buffer for ALL_RIGHT/LEFT will actually allocate in 2 channel mode for DMA (traced it down in ESP-IDF but don't have the ref on hand rn).

Open to suggestions on how it can be formatted better or any improvements :)

RSTjordan commented 4 years ago

@MikeShi42, can we access the wav from SPIFFS after recording and saving?

MikeShi42 commented 4 years ago

@RSTjordan I'm not familiar with SPIFFS on micropython, I'm assuming if the read/write API is similar/same as the default micropython file operations it should work? Is there an error you run into with the example?