From 6a7a403117fb85d78f97cd890406143547d51681 Mon Sep 17 00:00:00 2001 From: Terrence Date: Mon, 21 Jul 2025 14:40:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DC3=E5=94=A4=E9=86=92=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/application.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {