i want to create a sound detection or even a remote microphone via an i2s device.
i use the latest esphome and latest HA. and a esp32 + i2s microphone.
i followed the tutorials/docs and this is my config :
i2s_audio:
i2s_lrclk_pin: GPIO32 #ws
i2s_bclk_pin: GPIO25 #clk
microphone:
- platform: i2s_audio
id: adc_mic
adc_type: internal
adc_pin: GPIO35
what can i do to compile this yaml ?
and this is a part of my error :
Compiling /data/tillfleisch/.pioenvs/tillfleisch/src/esphome/components/i2s_audio/i2s_audio.cpp.o
In file included from /data/cache/platformio/packages/[email protected]/tools/sdk/include/driver/driver/i2s.h:30:0,
from src/esphome/components/i2s_audio/i2s_audio.h:5,
from src/esphome/components/i2s_audio/i2s_audio.cpp:1:
/data/cache/platformio/packages/[email protected]/tools/sdk/include/freertos/freertos/semphr.h:74:3: error: #error "include FreeRTOS.h" must appear in source files before "include semphr.h"
#error "include FreeRTOS.h" must appear in source files before "include semphr.h"
^
In file included from /data/cache/platformio/packages/[email protected]/tools/sdk/include/freertos/freertos/semphr.h:77:0,
from /data/cache/platformio/packages/[email protected]/tools/sdk/include/driver/driver/i2s.h:30,
from src/esphome/components/i2s_audio/i2s_audio.h:5,
from src/esphome/components/i2s_audio/i2s_audio.cpp:1:
/data/cache/platformio/packages/[email protected]/tools/sdk/include/freertos/freertos/queue.h:75:3: error: #error "include FreeRTOS.h" must appear in source files before "include queue.h"
#error "include FreeRTOS.h" must appear in source files before "include queue.h"
^
In file included from /data/cache/platformio/packages/[email protected]/tools/sdk/include/freertos/freertos/semphr.h:77:0,
from /data/cache/platformio/packages/framework-arduinoespressif32@3.