ESPHome 2025.5.0
Loading...
Searching...
No Matches
audio.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::audio::AudioStreamInfo
 
struct  esphome::audio::AudioFile
 

Namespaces

namespace  esphome
 Providing packet encoding functions for exchanging data with a remote host.
 
namespace  esphome::audio
 

Enumerations

enum class  esphome::audio::AudioFileType : uint8_t { esphome::audio::NONE = 0 , esphome::audio::FLAC , esphome::audio::MP3 , esphome::audio::WAV }
 

Functions

const char * esphome::audio::audio_file_type_to_string (AudioFileType file_type)
 Helper function to convert file type to a const char string.
 
void esphome::audio::scale_audio_samples (const int16_t *audio_samples, int16_t *output_buffer, int16_t scale_factor, size_t samples_to_scale)
 Scales Q15 fixed point audio samples.
 
int32_t esphome::audio::unpack_audio_sample_to_q31 (const uint8_t *data, size_t bytes_per_sample)
 Unpacks a quantized audio sample into a Q31 fixed-point number.
 
void esphome::audio::pack_q31_as_audio_sample (int32_t sample, uint8_t *data, size_t bytes_per_sample)
 Packs a Q31 fixed-point number as an audio sample with the specified number of bytes per sample.