ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::microphone Namespace Reference

Data Structures

struct  AudioCapture
 
class  DataCallbackManager
 
class  DataTrigger
 Reuses one vector so x stays valid in automations with a delay. More...
 
class  Microphone
 
class  MicrophoneSource
 

Typedefs

using DataCallbackManagerBase = CallbackManager<void(const AudioCapture &)>
 

Enumerations

enum  State : uint8_t { STATE_STOPPED = 0 , STATE_STARTING , STATE_RUNNING , STATE_STOPPING }
 

Functions

template<typename F >
 ESPDEPRECATED ("Take const microphone::AudioCapture & in data callbacks instead. Removed in 2027.5.0", "2026.11.0") const expr void warn_vector_data_callback()
 
template<typename F >
auto as_capture_callback (F &&callback)
 

Typedef Documentation

◆ DataCallbackManagerBase

Definition at line 53 of file microphone.h.

Enumeration Type Documentation

◆ State

Enumerator
STATE_STOPPED 
STATE_STARTING 
STATE_RUNNING 
STATE_STOPPING 

Definition at line 16 of file microphone.h.

Function Documentation

◆ as_capture_callback()

template<typename F >
auto esphome::microphone::as_capture_callback ( F && callback)

Definition at line 37 of file microphone.h.

◆ ESPDEPRECATED()

template<typename F >
esphome::microphone::ESPDEPRECATED ( "Take const microphone::AudioCapture & in data callbacks instead. Removed in 2027.5.0" ,
"2026.11.0"  ) const

Definition at line 34 of file microphone.h.