fix: 长按切换到点按后,无法唤醒的问题

This commit is contained in:
Terrence
2025-06-05 18:41:14 +08:00
parent 2f1229f09f
commit 5621fa5a65

View File

@@ -302,10 +302,12 @@ void Application::ToggleChatState() {
if (device_state_ == kDeviceStateIdle) {
Schedule([this]() {
if (!protocol_->IsAudioChannelOpened()) {
SetDeviceState(kDeviceStateConnecting);
if (!protocol_->OpenAudioChannel()) {
return;
}
}
SetListeningMode(aec_mode_ == kAecOff ? kListeningModeAutoStop : kListeningModeRealtime);
});