|
@@ -884,16 +884,16 @@ void Application::WakeWordInvoke(const std::string& wake_word) {
|
|
|
protocol_->SendWakeWordDetected(wake_word);
|
|
protocol_->SendWakeWordDetected(wake_word);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- } else if (device_state_ == kDeviceStateSpeaking) {
|
|
|
|
|
|
|
+ } else if (device_state_ == kDeviceStateSpeaking || device_state_ == kDeviceStateListening) {
|
|
|
Schedule([this]() {
|
|
Schedule([this]() {
|
|
|
AbortSpeaking(kAbortReasonNone);
|
|
AbortSpeaking(kAbortReasonNone);
|
|
|
});
|
|
});
|
|
|
- } else if (device_state_ == kDeviceStateListening) {
|
|
|
|
|
- Schedule([this]() {
|
|
|
|
|
- if (protocol_) {
|
|
|
|
|
- protocol_->CloseAudioChannel();
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // } else if (device_state_ == kDeviceStateListening) {
|
|
|
|
|
+ // Schedule([this]() {
|
|
|
|
|
+ // if (protocol_) {
|
|
|
|
|
+ // protocol_->CloseAudioChannel();
|
|
|
|
|
+ // }
|
|
|
|
|
+ // });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|