ESPHome  2024.10.2
Data Structures | Enumerations | Variables
esphome::voice_assistant Namespace Reference

Data Structures

struct  Configuration
 
class  ConnectedCondition
 
class  IsRunningCondition
 
class  StartAction
 
class  StartContinuousAction
 
class  StopAction
 
struct  Timer
 
class  VoiceAssistant
 
struct  WakeWord
 

Enumerations

enum  VoiceAssistantFeature : uint32_t { FEATURE_VOICE_ASSISTANT = 1 << 0, FEATURE_SPEAKER = 1 << 1, FEATURE_API_AUDIO = 1 << 2, FEATURE_TIMERS = 1 << 3 }
 
enum  State {
  State::IDLE, State::START_MICROPHONE, State::STARTING_MICROPHONE, State::WAIT_FOR_VAD,
  State::WAITING_FOR_VAD, State::START_PIPELINE, State::STARTING_PIPELINE, State::STREAMING_MICROPHONE,
  State::STOP_MICROPHONE, State::STOPPING_MICROPHONE, State::AWAITING_RESPONSE, State::STREAMING_RESPONSE,
  State::RESPONSE_FINISHED
}
 
enum  AudioMode : uint8_t { AUDIO_MODE_UDP, AUDIO_MODE_API }
 

Variables

VoiceAssistantglobal_voice_assistant = nullptr
 

Enumeration Type Documentation

◆ AudioMode

Enumerator
AUDIO_MODE_UDP 
AUDIO_MODE_API 

Definition at line 61 of file voice_assistant.h.

◆ State

Enumerator
IDLE 
START_MICROPHONE 
STARTING_MICROPHONE 
WAIT_FOR_VAD 
WAITING_FOR_VAD 
START_PIPELINE 
STARTING_PIPELINE 
STREAMING_MICROPHONE 
STOP_MICROPHONE 
STOPPING_MICROPHONE 
AWAITING_RESPONSE 
STREAMING_RESPONSE 
RESPONSE_FINISHED 

Definition at line 45 of file voice_assistant.h.

◆ VoiceAssistantFeature

Enumerator
FEATURE_VOICE_ASSISTANT 
FEATURE_SPEAKER 
FEATURE_API_AUDIO 
FEATURE_TIMERS 

Definition at line 38 of file voice_assistant.h.

Variable Documentation

◆ global_voice_assistant

VoiceAssistant * esphome::voice_assistant::global_voice_assistant = nullptr

Definition at line 889 of file voice_assistant.cpp.