Device goes to boot loop whenever i2s operation is performed

I am using esp32-s3-N16R8, When connecting AHT20sensor it works fine. I have connected the microphone ICS-43434 and Speaker amplifier MAX98357a, whenever i performed write operation for testing or use wake word or any other i2s or audio feature it either enters the boot mode or disconnects the wifi, when i only defines the i2s audio and gpio it does nothing and can connect to the wifi, I have also tested the speaker and microphone on arduino ide and able to produce simple sound. Also while compiling i am getting some uninitialized parameters warning for i2s. Is there any configuration I am missing?..here is my yaml file which compiled successfully:

Warnings while compiling:

Blockquote
src/esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp: In member function ‘void esphome::i2s_audio::I2SAudioMicrophone::start_()’:
src/esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp:62:3: warning: missing initializer for member ‘i2s_driver_config_t::chan_mask’ [-Wmissing-field-initializers]
};
^
src/esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp:62:3: warning: missing initializer for member ‘i2s_driver_config_t::total_chan’ [-Wmissing-field-initializers]
src/esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp:62:3: warning: missing initializer for member ‘i2s_driver_config_t::left_align’ [-Wmissing-field-initializers]
src/esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp:62:3: warning: missing initializer for member ‘i2s_driver_config_t::big_edin’ [-Wmissing-field-initializers]
src/esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp:62:3: warning: missing initializer for member ‘i2s_driver_config_t::bit_order_msb’ [-Wmissing-field-initializers]
src/esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp:62:3: warning: missing initializer for member ‘i2s_driver_config_t::skip_msk’ [-Wmissing-field-initializers]
Compiling .pioenvs/6-test-mic/src/esphome/components/logger/logger.o
src/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp: In static member function ‘static void esphome::i2s_audio::I2SAudioSpeaker::player_task(void*)’:
src/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp:95:3: warning: missing initializer for member ‘i2s_driver_config_t::chan_mask’ [-Wmissing-field-initializers]
};
^
src/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp:95:3: warning: missing initializer for member ‘i2s_driver_config_t::total_chan’ [-Wmissing-field-initializers]
src/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp:95:3: warning: missing initializer for member ‘i2s_driver_config_t::left_align’ [-Wmissing-field-initializers]
src/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp:95:3: warning: missing initializer for member ‘i2s_driver_config_t::big_edin’ [-Wmissing-field-initializers]
src/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp:95:3: warning: missing initializer for member ‘i2s_driver_config_t::bit_order_msb’ [-Wmissing-field-initializers]
src/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp:95:3: warning: missing initializer for member ‘i2s_driver_config_t::skip_msk’ [-Wmissing-field-initializers]
In file included from components/esp-tflite-micro/tensorflow/lite/micro/kernels/lstm_eval.cc:25:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:151:34: warning: declaration of ‘const tflite::ArithmeticParams& params’ shadows a parameter [-Wshadow]
const uint8_t input2_val) {
^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:126:56: note: shadowed declaration is here
inline void BroadcastMul6DSlow(const ArithmeticParams& params,
~~~~~~~~~~~~~~~~~~~~^~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:210:28: warning: declaration of ‘const tflite::ArithmeticParams& params’ shadows a parameter [-Wshadow]
const T input2_val) {
^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:171:44: note: shadowed declaration is here
BroadcastMul6DSlow(const ArithmeticParams& params,
~~~~~~~~~~~~~~~~~~~~^~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:250:46: warning: declaration of ‘const tflite::ArithmeticParams& params’ shadows a parameter [-Wshadow]
const std::complex input2_val) {
^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:221:56: note: shadowed declaration is here
inline void BroadcastMul6DSlow(const ArithmeticParams& params,
~~~~~~~~~~~~~~~~~~~~^~
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/maximum_minimum.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/micro_tensor_utils.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/mirror_pad.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/mul_common.o
In file included from components/esp-tflite-micro/tensorflow/lite/micro/kernels/mul_common.cc:19:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:151:34: warning: declaration of ‘const tflite::ArithmeticParams& params’ shadows a parameter [-Wshadow]
const uint8_t input2_val) {
^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:126:56: note: shadowed declaration is here
inline void BroadcastMul6DSlow(const ArithmeticParams& params,
~~~~~~~~~~~~~~~~~~~~^~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:210:28: warning: declaration of ‘const tflite::ArithmeticParams& params’ shadows a parameter [-Wshadow]
const T input2_val) {
^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:171:44: note: shadowed declaration is here
BroadcastMul6DSlow(const ArithmeticParams& params,
~~~~~~~~~~~~~~~~~~~~^~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:250:46: warning: declaration of ‘const tflite::ArithmeticParams& params’ shadows a parameter [-Wshadow]
const std::complex input2_val) {
^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:221:56: note: shadowed declaration is here
inline void BroadcastMul6DSlow(const ArithmeticParams& params,
~~~~~~~~~~~~~~~~~~~~^~
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/neg.o
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h: In instantiation of ‘typename std::enable_if<((! tflite::is_small_integer::value) || enable_for_short_integers), void>::type tflite::reference_ops::BroadcastMul6DSlow(const tflite::ArithmeticParams&, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, T*) [with T = int; bool enable_for_short_integers = false; typename std::enable_if<((! tflite::is_small_integer::value) || enable_for_short_integers), void>::type = void]’:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:260:28: required from ‘void tflite::reference_ops::BroadcastMul4DSlow(const tflite::ArithmeticParams&, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, T*) [with T = int]’
components/esp-tflite-micro/tensorflow/lite/micro/kernels/mul_common.cc:147:56: required from here
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:206:34: warning: declaration of ‘const tflite::ArithmeticParams& params’ shadows a parameter [-Wshadow]
BroadcastMulRecursiveDimensions(

    params, 0, input1_data, input2_data, output_data, &input1_offset,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    &input2_offset, &output_offset, desc1, desc2, extended_output_shape_dims,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [](const ArithmeticParams& params, const T input1_val,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       const T input2_val) {
       ~~~~~~~~~~~~~~~~~~~~~    
      T output_activation_min;
      ~~~~~~~~~~~~~~~~~~~~~~~~  
      T output_activation_max;
      ~~~~~~~~~~~~~~~~~~~~~~~~  
      GetActivationParams(params, &output_activation_min,
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          &output_activation_max);
                          ~~~~~~~~~~~~~~~~~~~~~~~~
      return ActivationFunctionWithMinMax<T>(input1_val * input2_val,
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                             output_activation_min,
                                             ~~~~~~~~~~~~~~~~~~~~~~
                                             output_activation_max);
                                             ~~~~~~~~~~~~~~~~~~~~~~~
    });
    ~~                          
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:171:44: note: shadowed declaration is here
BroadcastMul6DSlow(const ArithmeticParams& params,
                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h: In instantiation of 'typename std::enable_if<((! tflite::is_small_integer<T>::value) || enable_for_short_integers), void>::type tflite::reference_ops::BroadcastMul6DSlow(const tflite::ArithmeticParams&, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, T*) [with T = float; bool enable_for_short_integers = false; typename std::enable_if<((! tflite::is_small_integer<T>::value) || enable_for_short_integers), void>::type = void]':
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:260:28:   required from 'void tflite::reference_ops::BroadcastMul4DSlow(const tflite::ArithmeticParams&, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, T*) [with T = float]'
components/esp-tflite-micro/tensorflow/lite/micro/kernels/mul_common.cc:202:52:   required from here
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:206:34: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
BroadcastMulRecursiveDimensions(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    params, 0, input1_data, input2_data, output_data, &input1_offset,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    &input2_offset, &output_offset, desc1, desc2, extended_output_shape_dims,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [](const ArithmeticParams& params, const T input1_val,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       const T input2_val) {
       ~~~~~~~~~~~~~~~~~~~~~    
      T output_activation_min;
      ~~~~~~~~~~~~~~~~~~~~~~~~  
      T output_activation_max;
      ~~~~~~~~~~~~~~~~~~~~~~~~  
      GetActivationParams(params, &output_activation_min,
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          &output_activation_max);
                          ~~~~~~~~~~~~~~~~~~~~~~~~
      return ActivationFunctionWithMinMax<T>(input1_val * input2_val,
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                             output_activation_min,
                                             ~~~~~~~~~~~~~~~~~~~~~~
                                             output_activation_max);
                                             ~~~~~~~~~~~~~~~~~~~~~~~
    });
    ~~                          
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/mul.h:171:44: note: shadowed declaration is here
BroadcastMul6DSlow(const ArithmeticParams& params,
                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/pack.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/pad.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/pooling_common.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/prelu.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/prelu_common.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/quantize.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/quantize_common.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/read_variable.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/reduce.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/reduce_common.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/reshape.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/reshape_common.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/resize_bilinear.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/resize_nearest_neighbor.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/round.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/select.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/shape.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/slice.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/softmax_common.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/space_to_batch_nd.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/space_to_depth.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/split.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/split_v.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/squared_difference.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/squeeze.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/strided_slice.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/strided_slice_common.o
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/sub.o
In file included from components/esp-tflite-micro/tensorflow/lite/micro/kernels/sub.cc:24:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:264:68: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
    [](T input1_val, T input2_val, const ArithmeticParams& params) {
                                                                 ^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:256:47: note: shadowed declaration is here
void BroadcastSubSlow(const ArithmeticParams& params,
                    ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:284:40: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
       const ArithmeticParams& params) {
                                     ^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:272:59: note: shadowed declaration is here
inline void BroadcastSub16POTSlow(const ArithmeticParams& params,
                                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:308:68: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
    [](T input1_val, T input2_val, const ArithmeticParams& params) {
                                                                 ^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:298:52: note: shadowed declaration is here
void BroadcastQuantSubSlow(const ArithmeticParams& params,
                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:420:68: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
    [](T input1_val, T input2_val, const ArithmeticParams& params) {
                                                                 ^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:413:34: note: shadowed declaration is here
void Sub(const ArithmeticParams& params, const RuntimeShape& input1_shape,
       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Compiling .pioenvs/6-test-mic/components/esp-tflite-micro/tensorflow/lite/micro/kernels/sub_common.o
In file included from components/esp-tflite-micro/tensorflow/lite/micro/kernels/sub_common.cc:22:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:264:68: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
    [](T input1_val, T input2_val, const ArithmeticParams& params) {
                                                                 ^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:256:47: note: shadowed declaration is here
void BroadcastSubSlow(const ArithmeticParams& params,
                    ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:284:40: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
       const ArithmeticParams& params) {
                                     ^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:272:59: note: shadowed declaration is here
inline void BroadcastSub16POTSlow(const ArithmeticParams& params,
                                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:308:68: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
    [](T input1_val, T input2_val, const ArithmeticParams& params) {
                                                                 ^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:298:52: note: shadowed declaration is here
void BroadcastQuantSubSlow(const ArithmeticParams& params,
                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h: In lambda function:
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:420:68: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
    [](T input1_val, T input2_val, const ArithmeticParams& params) {
                                                                 ^
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:413:34: note: shadowed declaration is here
void Sub(const ArithmeticParams& params, const RuntimeShape& input1_shape,
       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h: In instantiation of 'void tflite::reference_ops::BroadcastSubSlow(const tflite::ArithmeticParams&, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, T*) [with T = float]':
components/esp-tflite-micro/tensorflow/lite/micro/kernels/sub.cc:54:52:   required from here
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:261:24: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
BroadcastSubCommon<T>(
~~~~~~~~~~~~~~~~~~~~~^
    params, input1_shape, input1_data, input2_shape, input2_data,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    output_shape, output_data,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    [](T input1_val, T input2_val, const ArithmeticParams& params) {
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      T activation_min, activation_max;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      GetActivationParams(params, &activation_min, &activation_max);
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      return ActivationFunctionWithMinMax(input1_val - input2_val,
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          activation_min, activation_max);
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    });
    ~~                
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:256:47: note: shadowed declaration is here
void BroadcastSubSlow(const ArithmeticParams& params,
                    ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h: In instantiation of 'void tflite::reference_ops::BroadcastQuantSubSlow(const tflite::ArithmeticParams&, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, const T*, const tflite::RuntimeShape&, T*) [with T = signed char]':
components/esp-tflite-micro/tensorflow/lite/micro/kernels/sub.cc:97:57:   required from here
components/esp-tflite-micro/tensorflow/lite/kernels/internal/reference/sub.h:305:24: warning: declaration of 'const tflite::ArithmeticParams& params' shadows a parameter [-Wshadow]
BroadcastSubCommon<T>(
~~~~~~~~~~~~~~~~~~~~~^
    params, input1_shape, input1_data, input2_shape, input2_data,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    output_shape, output_data,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    [](T input1_val, T input2_val, const ArithmeticParams& params) {
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      const int32_t shifted_input1_val =
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          (params.input1_offset + input1_val) * (1 << params.left_shift);
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      const int32_t shifted_input2_val =
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          (params.input2_offset + input2_val) * (1 << params.left_shift);
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      const int32_t scaled_input1_val =
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          MultiplyByQuantizedMultiplierSmallerThanOneExp(
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              shifted_input1_val, params.input1_multiplier,
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              params.input1_shift);
              ~~~~~~~~~~~~~~~~~~~~~
      const int32_t scaled_input2_val =
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          MultiplyByQuantizedMultiplierSmallerThanOneExp(
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              shifted_input2_val, params.input2_multiplier,
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              params.input2_shift);
              ~~~~~~~~~~~~~~~~~~~~~
      const int32_t raw_sub = scaled_input1_val - scaled_input2_val;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      const int32_t raw_output =
      ~~~~~~~~~~~~~~~~~~~~~~~~~~
          MultiplyByQuantizedMultiplierSmallerThanOneExp(
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              raw_sub, params.output_multiplier, params.output_shift) +
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          params.output_offset;
          ~~~~~~~~~~~~~~~~~~~~~
      const int32_t clamped_output =
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          std::min(params.quantized_activation_max,
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                   std::max(params.quantized_activation_min, raw_output));
                   
> Blockquote

> Blockquote

YAML file:
esphome:
name: 6-test-mic
friendly_name: 6_test_mic

esp32:
board: esp32-s3-devkitc-1
variant: esp32s3
framework:
 type: esp-idf

 sdkconfig_options:
   CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240: "y"
   CONFIG_ESP32S3_DATA_CACHE_64KB: "y"
   CONFIG_ESP32S3_DATA_CACHE_LINE_64B: "y"
   CONFIG_AUDIO_BOARD_CUSTOM: "y"

psram:
mode: octal
speed: 80MHz

# Enable logging
logger:

# Enable Home Assistant API
api:
encryption:
 key: "key"

ota:
- platform: esphome
 password: "password"

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

# Optional static IP configuration
manual_ip:
 static_ip:   # Set a static IP address within your network range
 gateway: 
 subnet: 

# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
 ssid: "6-Test-Mic Fallback Hotspot"
 password: "password"

captive_portal:
i2c:
sda: GPIO11
scl: GPIO10
scan: true
id: bus_a

sensor:
- platform: aht10
 variant: AHT20
 temperature:
   name: "Living Room Temperature"
 humidity:
   name: "Living Room Humidity"
 update_interval: 60s

button:
- platform: restart
 name: "Restart"
 id: but_rest

i2s_audio:
- id: i2s_in
 i2s_lrclk_pin: GPIO7  #WS 
 i2s_bclk_pin: GPIO5 #SCK
- id: i2s_speaker
 i2s_lrclk_pin: GPIO4  #LRC 
 i2s_bclk_pin: GPIO13 #BLCK

microphone:
- platform: i2s_audio
 id: va_mic
 adc_type: external
 i2s_din_pin: GPIO6      # SD pin on the INMP441
 channel: left
 pdm: false
 i2s_audio_id: i2s_in
 bits_per_sample: 32 bit

speaker:
platform: i2s_audio
id: va_speaker
i2s_audio_id: i2s_speaker
dac_type: external
i2s_dout_pin: GPIO14      # DIN pin of the MAX98357A Audio Amplifier
channel: mono

micro_wake_word:
models:
 - model: hey_jarvis
on_wake_word_detected:
 - logger.log: "Wake word detected!"
 - voice_assistant.start:
     wake_word: !lambda return wake_word;

voice_assistant:
id: va
microphone: va_mic
noise_suppression_level: 2.0
volume_multiplier: 4.0
speaker: va_speaker
on_stt_end:
 then: 
   - logger.log: "Speech-to-Text ended."
on_error:
 - logger.log: "Error detected, restarting wake word."
 - micro_wake_word.start:  
on_end:
 then:
   - logger.log: "Voice assistant ended."
   - wait_until:
       not:
         voice_assistant.is_running:
   - micro_wake_word.start:

> Blockquote

YAML file is attached at the bottom of the above block.