diff --git a/software/source/clients/esp32/src/client/client.ino b/software/source/clients/esp32/src/client/client.ino index f88df53..ce8ced5 100644 --- a/software/source/clients/esp32/src/client/client.ino +++ b/software/source/clients/esp32/src/client/client.ino @@ -638,6 +638,8 @@ void InitI2SSpeakerOrMic(int mode) i2s_config.mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_PDM); i2s_config.sample_rate = MIC_SAMPLE_RATE; + i2s_config.dma_buf_count = 8; + i2s_config.dma_buf_len = 240; } else { @@ -876,4 +878,4 @@ void loop() M5.update(); webSocket.loop(); } -} +}