Fix silence detection flag on voice assistant (#5120)

This commit is contained in:
Jesse Hills
2023-07-19 11:38:47 +12:00
committed by GitHub
parent 837c749cd7
commit 417d45939f
9 changed files with 20 additions and 12 deletions
@@ -130,7 +130,7 @@ void VoiceAssistant::start(struct sockaddr_storage *addr, uint16_t port) {
void VoiceAssistant::request_start(bool continuous) {
ESP_LOGD(TAG, "Requesting start...");
if (!api::global_api_server->start_voice_assistant(this->conversation_id_)) {
if (!api::global_api_server->start_voice_assistant(this->conversation_id_, this->silence_detection_)) {
ESP_LOGW(TAG, "Could not request start.");
this->error_trigger_->trigger("not-connected", "Could not request start.");
this->continuous_ = false;