ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::usb_audio Namespace Reference

Data Structures

class  USBAudioComponent
 
struct  USBAudioEvent
 Posted to the main loop, by the USB driver task (CONNECTED, DISCONNECTED) or the hub's worker (the results). More...
 
class  USBAudioMicrophone
 
class  USBAudioSpeaker
 
class  USBAudioStream
 A speaker or microphone platform that streams through the hub. The hub calls it on the main loop only. More...
 

Enumerations

enum class  Endpoint : uint8_t { SPEAKER , MICROPHONE }
 
enum class  StreamEvent : uint8_t { RUNNING , LOST , FAILED }
 What the hub reports to a platform about its stream. More...
 

Functions

 ESPHOME_LOG_TAG (TAG, "usb_audio.mic")
 
 ESPHOME_LOG_TAG (TAG, "usb_audio.spk")
 
 ESPHOME_LOG_TAG (TAG, "usb_audio")
 

Enumeration Type Documentation

◆ Endpoint

enum class esphome::usb_audio::Endpoint : uint8_t
strong
Enumerator
SPEAKER 
MICROPHONE 

Definition at line 23 of file usb_audio.h.

◆ StreamEvent

enum class esphome::usb_audio::StreamEvent : uint8_t
strong

What the hub reports to a platform about its stream.

Enumerator
RUNNING 
LOST 
FAILED 

Definition at line 29 of file usb_audio.h.

Function Documentation

◆ ESPHOME_LOG_TAG() [1/3]

esphome::usb_audio::ESPHOME_LOG_TAG ( TAG ,
"usb_audio"  )

◆ ESPHOME_LOG_TAG() [2/3]

esphome::usb_audio::ESPHOME_LOG_TAG ( TAG ,
"usb_audio.mic"  )

◆ ESPHOME_LOG_TAG() [3/3]

esphome::usb_audio::ESPHOME_LOG_TAG ( TAG ,
"usb_audio.spk"  )