diff --git a/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp b/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp index 1b7b04be8e..372a318898 100644 --- a/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp +++ b/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp @@ -218,7 +218,7 @@ void I2SAudioSpeaker::loop() { size_t I2SAudioSpeaker::play(const uint8_t *data, size_t length) { if (this->state_ != speaker::STATE_RUNNING && this->state_ != speaker::STATE_STARTING) { - esph_log_d(TAG, "Called play while speaker not running."); + ESP_LOGD(TAG, "Called play while speaker not running."); return 0; } size_t remaining = length; diff --git a/esphome/components/speaker/speaker.h b/esphome/components/speaker/speaker.h index 23248d2080..677740781f 100644 --- a/esphome/components/speaker/speaker.h +++ b/esphome/components/speaker/speaker.h @@ -23,7 +23,7 @@ class Speaker { virtual bool has_buffered_data() const = 0; bool is_running() const { return this->state_ == STATE_RUNNING; } - bool has_stopped() const { return this->state_ == STATE_STOPPED; } + bool is_stopped() const { return this->state_ == STATE_STOPPED; } protected: State state_{STATE_STOPPED}; diff --git a/esphome/components/voice_assistant/voice_assistant.cpp b/esphome/components/voice_assistant/voice_assistant.cpp index 77dc55a9aa..1684a62247 100644 --- a/esphome/components/voice_assistant/voice_assistant.cpp +++ b/esphome/components/voice_assistant/voice_assistant.cpp @@ -340,7 +340,7 @@ void VoiceAssistant::loop() { break; } else if (this->speaker_->is_running()) { this->speaker_->finish(); - } else if (this->speaker_->has_stopped()) { + } else if (this->speaker_->is_stopped()) { ESP_LOGD(TAG, "Speaker has finished outputting all audio"); this->cancel_timeout("speaker-timeout"); this->cancel_timeout("playing");