esphome / feature-requests

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

add i2s support for esp32-c6 #2481

Open TRusselo opened 10 months ago

TRusselo commented 10 months ago

Describe the problem you have/What new integration you would like

ESP32-c6-devkitm-1 ESP32-c6-devkitc-1

both have i2s controller, but editor says c6 is not supported

image

Please describe your use case for this integration and alternatives you've tried:

Additional context

linkedupbits commented 10 months ago

Looks like it needs the variant defined here: https://github.com/esphome/esphome/blob/dev/esphome/components/i2s_audio/__init__.py

TRusselo commented 10 months ago

was chatting with jesserockz in discord

he had my add

external_components:

to my config

it failed compile

log : logs_esp-mic_run.txt

`src/esphome/components/i2s_audio/i2s_audio.cpp:15:24: error: 'I2S_NUM_MAX' was not declared in this scope; did you mean 'I2S_NUM_0'?

src/esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp:60:24: error: 'I2S_MCLK_MULTIPLE_DEFAULT' was not declared in this scope; did you mean 'I2S_MCLK_MULTIPLE_512'? src/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp:54:24: error: 'I2S_MCLK_MULTIPLE_DEFAULT' was not declared in this scope; did you mean 'I2S_MCLK_MULTIPLE_512'?

*** [.pioenvs/esp32-mic/src/esphome/components/i2s_audio/speaker/i2s_audio_speaker.o] Error 1

src/esphome/components/voice_assistant/voice_assistant.cpp:502:17: error: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Werror=format=]`