sheaivey / ESP32-AudioInI2S

A simple MEMS I2S microphone and audio processing library for ESP32.
MIT License
50 stars 11 forks source link

not working with ESP32 v3.03 #5

Closed Sascha8 closed 1 month ago

Sascha8 commented 1 month ago

HI, mic.read(samples) returns always 0 with the latest ESP32 lib. Please fix!

Thx!

Sascha8 commented 1 month ago

looking deeper in this I found using I2S_CHANNEL_FMT_ONLY_LEFT at the constructor get it back to work fine :)

AudioInI2S mic(SCK_PIN, WS_PIN, SD_PIN, -1, I2S_CHANNEL_FMT_ONLY_LEFT);

sheaivey commented 1 month ago

Glad you were able to find that on your own. Not all MEMS microphones default to sending to the I2S_CHANNEL_FMT_ONLY_RIGHT channel, I just picked the default that worked with the ones I have.

I'll update the AudioInI2S Readme for some trouble shooting help.

Thanks

sheaivey commented 1 month ago

Added some trouble shooting notes here... https://github.com/sheaivey/ESP32-AudioInI2S/commit/c5e1e339e38535b951412e220c5e0eda5a5cb795