Search found 3 matches

by walinsky
Mon Oct 02, 2023 6:47 pm
Forum: ESP-IDF
Topic: Inputting audio to an ESP32 from an INMP441 I2S microphone: success
Replies: 13
Views: 73566

Re: Inputting audio to an ESP32 from an INMP441 I2S microphone: success

I had the same problems a few weeks ago. And finally solved it in a different thread.
by walinsky
Fri Sep 22, 2023 11:39 am
Forum: ESP-IDF
Topic: I2s microphone sample rate seems halft as big as it's supposed to
Replies: 5
Views: 4358

Re: I2s microphone sample rate seems halft as big as it's supposed to

Ok. Found it. By setting .slot_cfg.data_bit_width to 24 bit, I effectively decreased the pitch by 3/4. You can simply set .slot_cfg = I2S_STD_PHILIPS_SLOT_DEFAULT_CONFIG(I2S_DATA_BIT_WIDTH_32BIT, I2S_SLOT_MODE_STEREO), like TS already mentioned. Correct (tested) code for the Megaphone: #include <std...
by walinsky
Thu Sep 21, 2023 11:10 pm
Forum: ESP-IDF
Topic: I2s microphone sample rate seems halft as big as it's supposed to
Replies: 5
Views: 4358

Re: I2s microphone sample rate seems halft as big as it's supposed to

Funny thing is, this has been hidden in plain sight for years... https://www.esp32.com/viewtopic.php?f=13&t=1756&start=10#p9283 I'm using ESP-IDF5.1 as well, and wrote a piece of code that will output the input from my 2 microphones to an external DAC. #include <stdio.h> #include <string.h> #include...