diff --git a/esphome/components/adf_pipeline/adf_audio_sources.cpp b/esphome/components/adf_pipeline/adf_audio_sources.cpp index c70f17e..7ab2330 100644 --- a/esphome/components/adf_pipeline/adf_audio_sources.cpp +++ b/esphome/components/adf_pipeline/adf_audio_sources.cpp @@ -311,9 +311,7 @@ int PCMSource::stream_write(char *buffer, int len) { return 0; } int ret = audio_element_output(this->adf_raw_stream_writer_, buffer, len); - if (ret == AEL_IO_TIMEOUT) { - //audio_element_report_status(this->adf_raw_stream_writer_, AEL_STATUS_STATE_FINISHED); - } else if (ret < 0) { + if (ret < 0) { return 0; } return ret; diff --git a/esphome/components/adf_pipeline/speaker/esp_adf_speaker.cpp b/esphome/components/adf_pipeline/speaker/esp_adf_speaker.cpp index 3e806d3..09cded6 100644 --- a/esphome/components/adf_pipeline/speaker/esp_adf_speaker.cpp +++ b/esphome/components/adf_pipeline/speaker/esp_adf_speaker.cpp @@ -70,7 +70,7 @@ size_t ADFSpeaker::play(const uint8_t *data, size_t length) { } if (this->state_ != speaker::STATE_RUNNING) { - ESP_LOGW(TAG, "Trying to play audio while speaker not running."); + ESP_LOGV(TAG, "Trying to play audio while speaker not running."); return 0; } diff --git a/esphome/components/i2s_audio/adf_pipeline/adf_i2s_out.cpp b/esphome/components/i2s_audio/adf_pipeline/adf_i2s_out.cpp index dadd5d9..0285d2c 100644 --- a/esphome/components/i2s_audio/adf_pipeline/adf_i2s_out.cpp +++ b/esphome/components/i2s_audio/adf_pipeline/adf_i2s_out.cpp @@ -40,7 +40,7 @@ bool ADFElementI2SOut::init_adf_elements_() { .i2s_port = this->parent_->get_port(), .use_alc = this->use_adf_alc_, .volume = 0, - .out_rb_size = (4 * 1024), + .out_rb_size = (20 * 1024), .task_stack = I2S_STREAM_TASK_STACK, .task_core = I2S_STREAM_TASK_CORE, .task_prio = I2S_STREAM_TASK_PRIO,