esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
413 stars 26 forks source link

Add support for Stereo Microphones in addition to select Left/Right #2562

Open MStapelfeldt opened 8 months ago

MStapelfeldt commented 8 months ago

Describe the problem you have/What new integration you would like While ESPHome works great now with I2S microphones at left OR right channel, it is not supporting stereo microphones:

microphone:
  - platform: i2s_audio
    channel: stereo

channel (Optional, enum): The channel of the microphone. One of left or right. Defaults to right.

Please describe your use case for this integration and alternatives you've tried: At issue #2430 and #2258 request for mic-arrays is already requested and both, esp32-korvo-v1.1 and i2s microphone array (6+1) uses Left and right channel setups (Korvo ES7210 has L/R Channel description in Section 5. Besides this (almost) every I2S/MEMS mic has option to select L/R by SEL Pin tied to GND or VDD. With stereo integration, it will be easy setup device with 2 mics pointing 90° angle to catch better voice commants on either direction.

Additional context Stereo should be already be possible by espressif idf description: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/i2s.html#std-tx-mode

std_cfg.slot_cfg.slot_mode = I2S_SLOT_MODE_STEREO / I2S_SLOT_MODE_MONO; // Default is stereo (many more details can be found, just search stereo)

ALX-TH commented 8 months ago

Would be a great to have such feature. +1