From bf1edaf0d9eda769c87f7fc06c08ac55006f0ce7 Mon Sep 17 00:00:00 2001 From: NP v/d Spek Date: Mon, 28 Oct 2024 23:25:24 +0100 Subject: [PATCH] some extra fixes --- esphome/components/voice_assistant/voice_assistant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/voice_assistant/voice_assistant.cpp b/esphome/components/voice_assistant/voice_assistant.cpp index cd3ba1f835..0c2f075611 100644 --- a/esphome/components/voice_assistant/voice_assistant.cpp +++ b/esphome/components/voice_assistant/voice_assistant.cpp @@ -435,7 +435,7 @@ void VoiceAssistant::loop() { void VoiceAssistant::write_speaker_() { if ((this->speaker_ != nullptr) && (this->speaker_buffer_ != nullptr)) { if (this->speaker_buffer_size_ > 0) { - size_t write_chunk = std::min(this->speaker_buffer_size_, 4 * 1024); + // size_t write_chunk = std::min(this->speaker_buffer_size_, 4 * 1024); size_t written = 0; // this->speaker_->play(this->speaker_buffer_, write_chunk); if (written > 0) { memmove(this->speaker_buffer_, this->speaker_buffer_ + written, this->speaker_buffer_size_ - written);