From b05e7bfe0a27067621769d8f7571669e4ebab295 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:07:09 +1200 Subject: [PATCH] Update flags --- esphome/components/esp_adf/microphone/esp_adf_microphone.cpp | 4 ++-- esphome/components/esp_adf/speaker/esp_adf_speaker.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/esp_adf/microphone/esp_adf_microphone.cpp b/esphome/components/esp_adf/microphone/esp_adf_microphone.cpp index e8d5484c4b..52131b272b 100644 --- a/esphome/components/esp_adf/microphone/esp_adf_microphone.cpp +++ b/esphome/components/esp_adf/microphone/esp_adf_microphone.cpp @@ -93,7 +93,7 @@ void ESPADFMicrophone::read_task(void *params) { .use_apll = false, .tx_desc_auto_clear = true, .fixed_mclk = 0, - .mclk_multiple = I2S_MCLK_MULTIPLE_DEFAULT, + .mclk_multiple = I2S_MCLK_MULTIPLE_256, .bits_per_chan = I2S_BITS_PER_CHAN_DEFAULT, }; @@ -121,7 +121,7 @@ void ESPADFMicrophone::read_task(void *params) { .dest_rate = 16000, .dest_bits = 16, .dest_ch = 1, - .src_bits = 16, + .src_bits = I2S_BITS_PER_SAMPLE_16BIT, .mode = RESAMPLE_DECODE_MODE, .max_indata_bytes = RSP_FILTER_BUFFER_BYTE, .out_len_bytes = RSP_FILTER_BUFFER_BYTE, diff --git a/esphome/components/esp_adf/speaker/esp_adf_speaker.cpp b/esphome/components/esp_adf/speaker/esp_adf_speaker.cpp index 39bde1cdbf..40d1d70688 100644 --- a/esphome/components/esp_adf/speaker/esp_adf_speaker.cpp +++ b/esphome/components/esp_adf/speaker/esp_adf_speaker.cpp @@ -55,7 +55,7 @@ void ESPADFSpeaker::player_task(void *params) { .use_apll = false, .tx_desc_auto_clear = true, .fixed_mclk = 0, - .mclk_multiple = I2S_MCLK_MULTIPLE_DEFAULT, + .mclk_multiple = I2S_MCLK_MULTIPLE_256, .bits_per_chan = I2S_BITS_PER_CHAN_DEFAULT, };