mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 12:27:13 +01:00
Reset vad counter once it is triggered
This commit is contained in:
parent
41f29c46d0
commit
dac4e81750
@ -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 New Issue
Block a user