diff --git a/main/application.cc b/main/application.cc index 9b64a916..131d54e6 100644 --- a/main/application.cc +++ b/main/application.cc @@ -685,7 +685,7 @@ void Application::InputAudio() { } #if CONFIG_USE_WAKE_WORD_DETECT - if (wake_word_detect_.IsDetectionRunning()) { + if (device_state_ != kDeviceStateListening && wake_word_detect_.IsDetectionRunning()) { wake_word_detect_.Feed(data); } #endif diff --git a/main/audio_processing/wake_word_detect.cc b/main/audio_processing/wake_word_detect.cc index c986c265..9a18447b 100644 --- a/main/audio_processing/wake_word_detect.cc +++ b/main/audio_processing/wake_word_detect.cc @@ -132,9 +132,6 @@ void WakeWordDetect::AudioDetectionTask() { auto res = esp_afe_sr_v1.fetch(afe_detection_data_); if (res == nullptr || res->ret_value == ESP_FAIL) { - if (res != nullptr) { - ESP_LOGI(TAG, "Error code: %d", res->ret_value); - } continue;; }