mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
Reset vad counter once it is triggered
This commit is contained in:
parent
41f29c46d0
commit
dac4e81750
1 changed files with 1 additions and 0 deletions
|
@ -188,6 +188,7 @@ void VoiceAssistant::loop() {
|
|||
} else {
|
||||
ESP_LOGD(TAG, "VAD detected speech");
|
||||
this->set_state_(State::START_PIPELINE, State::STREAMING_MICROPHONE);
|
||||
this->vad_counter_ = 0;
|
||||
}
|
||||
} else {
|
||||
if (this->vad_counter_ > 0) {
|
||||
|
|
Loading…
Reference in a new issue