diff --git a/main/application.cc b/main/application.cc index 91e41314..3c7dea2f 100644 --- a/main/application.cc +++ b/main/application.cc @@ -605,11 +605,12 @@ void Application::OnWakeWordDetected() { } // Set the chat state to wake word detected protocol_->SendWakeWordDetected(wake_word); + SetListeningMode(aec_mode_ == kAecOff ? kListeningModeAutoStop : kListeningModeRealtime); #else + SetListeningMode(aec_mode_ == kAecOff ? kListeningModeAutoStop : kListeningModeRealtime); // Play the pop up sound to indicate the wake word is detected audio_service_.PlaySound(Lang::Sounds::P3_POPUP); #endif - SetListeningMode(aec_mode_ == kAecOff ? kListeningModeAutoStop : kListeningModeRealtime); } else if (device_state_ == kDeviceStateSpeaking) { AbortSpeaking(kAbortReasonWakeWordDetected); } else if (device_state_ == kDeviceStateActivating) {