Skip to content

Commit

Permalink
Bugfix: Send the configured sample rate to the speaker (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrendt authored Oct 17, 2024
1 parent 2e55352 commit cbc2c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/components/nabu/nabu_media_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ esp_err_t NabuMediaPlayer::start_pipeline_(AudioPipelineType type, bool url) {
audio::AudioStreamInfo audio_stream_info;
audio_stream_info.channels = 2;
audio_stream_info.bits_per_sample = 16;
audio_stream_info.sample_rate = 48000;
audio_stream_info.sample_rate = this->sample_rate_;

this->speaker_->set_audio_stream_info(audio_stream_info);
}
Expand Down

0 comments on commit cbc2c3e

Please sign in to comment.