Which works great but slightly confused as irrespective of I2S_BITS_PER_SAMPLE_24BIT it would seem to be always 16 bit when importing the raw into audacity.
https://drive.google.com/open?id=1FQkvV ... 6_uW_Absuy
The above is my result and apart from stereo mics to the above project its vanilla with a slight change to I2S config.
Code: Select all
// i2s config - this is set up to read fro the left channel
i2s_config_t i2s_config = {
.mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX),
.sample_rate = 44100,
.bits_per_sample = I2S_BITS_PER_SAMPLE_32BIT,
.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT,
.communication_format = i2s_comm_format_t(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB),
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL1,
.dma_buf_count = 4,
.dma_buf_len = 1024,
.use_apll = false,
.tx_desc_auto_clear = false,
.fixed_mclk = 0};