[voice-assistant] Dont error on `no_wake_word` timeout error with streaming wake word (#7435)

This commit is contained in:
Jesse Hills 2024-09-12 14:08:41 +12:00 committed by GitHub
parent af1a909c27
commit cb7b4d9365
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -755,7 +755,7 @@ void VoiceAssistant::on_event(const api::VoiceAssistantEventResponse &msg) {
message = std::move(arg.value);
}
}
if (code == "wake-word-timeout" || code == "wake_word_detection_aborted") {
if (code == "wake-word-timeout" || code == "wake_word_detection_aborted" || code == "no_wake_word") {
// Don't change state here since either the "tts-end" or "run-end" events will do it.
return;
} else if (code == "wake-provider-missing" || code == "wake-engine-missing") {