ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
i2s_audio_speaker_standard.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef USE_ESP32
4
5#include "i2s_audio_speaker.h"
6
7namespace esphome::i2s_audio {
8
9enum class I2SCommFmt : uint8_t {
10 STANDARD, // Philips / I2S standard
11 PCM, // PCM short
12 MSB, // MSB / left-justified
13};
14
18 public:
19 void dump_config() override;
20
22
23 protected:
24 void run_speaker_task() override;
25 esp_err_t start_i2s_driver(audio::AudioStreamInfo &audio_stream_info) override;
26
28};
29
30} // namespace esphome::i2s_audio
31
32#endif // USE_ESP32
Abstract base class for I2S audio speaker implementations.
Standard I2S speaker implementation.
esp_err_t start_i2s_driver(audio::AudioStreamInfo &audio_stream_info) override
size_t size_t const char * fmt
Definition helpers.h:1039