fix: 长按切换到点按后,无法唤醒的问题
This commit is contained in:
parent
2f1229f09f
commit
5621fa5a65
@ -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);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user