Voice-Assistant: Start-order change for VAD disabled: start va-pipeline when microphon… (#6391)

This commit is contained in:
Mischa Siekmann 2024-05-14 03:25:24 +02:00 committed by Jesse Hills
parent 142c4a87d2
commit 128fad57b3
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
1 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ void VoiceAssistant::loop() {
} else
#endif
{
this->set_state_(State::START_PIPELINE, State::START_MICROPHONE);
this->set_state_(State::START_MICROPHONE, State::START_PIPELINE);
}
} else {
this->high_freq_.stop();
@ -514,7 +514,7 @@ void VoiceAssistant::request_start(bool continuous, bool silence_detection) {
} else
#endif
{
this->set_state_(State::START_PIPELINE, State::START_MICROPHONE);
this->set_state_(State::START_MICROPHONE, State::START_PIPELINE);
}
}
}