forked from xiaozhi/xiaozhi-esp32
修复C3唤醒提示音
This commit is contained in:
@@ -605,11 +605,12 @@ void Application::OnWakeWordDetected() {
|
|||||||
}
|
}
|
||||||
// Set the chat state to wake word detected
|
// Set the chat state to wake word detected
|
||||||
protocol_->SendWakeWordDetected(wake_word);
|
protocol_->SendWakeWordDetected(wake_word);
|
||||||
|
SetListeningMode(aec_mode_ == kAecOff ? kListeningModeAutoStop : kListeningModeRealtime);
|
||||||
#else
|
#else
|
||||||
|
SetListeningMode(aec_mode_ == kAecOff ? kListeningModeAutoStop : kListeningModeRealtime);
|
||||||
// Play the pop up sound to indicate the wake word is detected
|
// Play the pop up sound to indicate the wake word is detected
|
||||||
audio_service_.PlaySound(Lang::Sounds::P3_POPUP);
|
audio_service_.PlaySound(Lang::Sounds::P3_POPUP);
|
||||||
#endif
|
#endif
|
||||||
SetListeningMode(aec_mode_ == kAecOff ? kListeningModeAutoStop : kListeningModeRealtime);
|
|
||||||
} else if (device_state_ == kDeviceStateSpeaking) {
|
} else if (device_state_ == kDeviceStateSpeaking) {
|
||||||
AbortSpeaking(kAbortReasonWakeWordDetected);
|
AbortSpeaking(kAbortReasonWakeWordDetected);
|
||||||
} else if (device_state_ == kDeviceStateActivating) {
|
} else if (device_state_ == kDeviceStateActivating) {
|
||||||
|
|||||||
Reference in New Issue
Block a user