Open water5 opened 3 years ago
The I2S implementation works with two MICs. The error you see might be caused by the ESP32 running out of DMA capable memory when I2S is initialized. You can try to fix the problem by reducing the values of dmalen
and dmacount
in the I2S initialization call. That change will reduce the amount of DMA capable memory that is allocated during initialization.
It works after reduce NUM_SAMPLES_IN_DMA_BUFFER
, but what affect after change dmalen
, dmacount
?
Thanks for the followup. I'm glad you got it working. Reducing dmalen
and dmacount
reduces the amount of DMA capable memory that is used. I'm surprised that reducing NUM_SAMPLES_IN_DMA_BUFFER
fixed the problem as the error message message you got does not suggest this fix would work.
I try to connect two INMP441, and change
channelformat = I2S.RIGHT_LEFT
, rise error below:Is it support record stero MIC to file currently?