forked from xiaozhi/xiaozhi-esp32
fix: 长按切换到点按后,无法唤醒的问题
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user