|
ESPHome 2026.8.0-dev
|
#include <voice_assistant.h>
Public Member Functions | |
| VoiceAssistant () | |
| void | loop () override |
| void | setup () override |
| float | get_setup_priority () const override |
| void | start_streaming () |
| void | start_streaming (struct sockaddr_storage *addr, uint16_t port) |
| void | failed_to_start () |
| void | set_microphone_source (microphone::MicrophoneSource *mic_source) |
| void | set_microphone_source2 (microphone::MicrophoneSource *mic_source2) |
| void | set_micro_wake_word (micro_wake_word::MicroWakeWord *mww) |
| void | set_speaker (speaker::Speaker *speaker) |
| void | set_media_player (media_player::MediaPlayer *media_player) |
| uint32_t | get_legacy_version () const |
| uint32_t | get_feature_flags () const |
| void | request_start (bool continuous, bool silence_detection) |
| void | request_stop () |
| void | on_event (const api::VoiceAssistantEventResponse &msg) |
| void | on_audio (const api::VoiceAssistantAudio &msg) |
| void | on_timer_event (const api::VoiceAssistantTimerEventResponse &msg) |
| void | on_announce (const api::VoiceAssistantAnnounceRequest &msg) |
| void | on_set_configuration (const std::vector< std::string > &active_wake_words) |
| const Configuration & | get_configuration () |
| bool | is_running () const |
| void | set_continuous (bool continuous) |
| bool | is_continuous () const |
| void | set_use_wake_word (bool use_wake_word) |
| void | set_noise_suppression_level (uint8_t noise_suppression_level) |
| void | set_auto_gain (uint8_t auto_gain) |
| void | set_volume_multiplier (float volume_multiplier) |
| void | set_conversation_timeout (uint32_t conversation_timeout) |
| void | reset_conversation_id () |
| Trigger * | get_intent_end_trigger () |
| Trigger * | get_intent_start_trigger () |
| Trigger< std::string > * | get_intent_progress_trigger () |
| Trigger * | get_listening_trigger () |
| Trigger * | get_end_trigger () |
| Trigger * | get_start_trigger () |
| Trigger * | get_stt_vad_end_trigger () |
| Trigger * | get_stt_vad_start_trigger () |
| Trigger * | get_tts_stream_start_trigger () |
| Trigger * | get_tts_stream_end_trigger () |
| Trigger * | get_wake_word_detected_trigger () |
| Trigger< std::string > * | get_stt_end_trigger () |
| Trigger< std::string > * | get_tts_end_trigger () |
| Trigger< std::string > * | get_tts_start_trigger () |
| Trigger< std::string, std::string > * | get_error_trigger () |
| Trigger * | get_idle_trigger () |
| Trigger * | get_client_connected_trigger () |
| Trigger * | get_client_disconnected_trigger () |
| void | client_subscription (api::APIConnection *client, bool subscribe) |
| api::APIConnection * | get_api_connection () const |
| void | set_wake_word (const std::string &wake_word) |
| Trigger< Timer > * | get_timer_started_trigger () |
| Trigger< Timer > * | get_timer_updated_trigger () |
| Trigger< Timer > * | get_timer_cancelled_trigger () |
| Trigger< Timer > * | get_timer_finished_trigger () |
| Trigger< const std::vector< Timer > & > * | get_timer_tick_trigger () |
| void | set_has_timers (bool has_timers) |
| const std::vector< Timer > & | get_timers () const |
Public Member Functions inherited from esphome::Component | |
| virtual void | dump_config () |
| float | get_actual_setup_priority () const |
| void | set_setup_priority (float priority) |
| void | call () |
| virtual void | on_shutdown () |
| virtual void | on_safe_shutdown () |
| virtual bool | teardown () |
| Called during teardown to allow component to gracefully finish operations. | |
| virtual void | on_powerdown () |
| Called after teardown is complete to power down hardware. | |
| uint8_t | get_component_state () const |
| void | reset_to_construction_state () |
| Reset this component back to the construction state to allow setup to run again. | |
| bool | is_in_loop_state () const |
| Check if this component has completed setup and is in the loop state. | |
| bool | is_idle () const |
| Check if this component is idle. | |
| void | mark_failed () |
| Mark this component as failed. | |
| void | mark_failed (const LogString *message) |
| void | disable_loop () |
| Disable this component's loop. | |
| void | enable_loop () |
| Enable this component's loop. | |
| void | enable_loop_soon_any_context () |
| Thread and ISR-safe version of enable_loop() that can be called from any context. | |
| bool | is_failed () const |
| bool | is_ready () const |
| virtual bool | can_proceed () |
| bool | status_has_warning () const |
| bool | status_has_error () const |
| void | status_set_warning () |
| void | status_set_warning (const char *message) |
| void | status_set_warning (const LogString *message) |
| void | status_set_error () |
| void | status_set_error (const LogString *message) |
| void | status_clear_warning () |
| void | status_clear_error () |
| void | status_momentary_warning (const char *name, uint32_t length=5000) |
| Set warning status flag and automatically clear it after a timeout. | |
| void | status_momentary_error (const char *name, uint32_t length=5000) |
| Set error status flag and automatically clear it after a timeout. | |
| bool | has_overridden_loop () const |
| const LogString * | get_component_log_str () const ESPHOME_ALWAYS_INLINE |
| Get the integration where this component was declared as a LogString for logging. | |
| bool | should_warn_of_blocking (uint32_t blocking_time, uint32_t &threshold_ms_out) |
Protected Member Functions | |
| bool | allocate_buffers_ () |
| void | clear_buffers_ () |
| void | deallocate_buffers_ () |
| void | set_state_ (State state) |
| void | set_state_ (State state, State desired_state) |
| void | signal_stop_ () |
| void | start_playback_timeout_ () |
| void | stream_api_audio_ () |
| void | handle_channel_stall_ (size_t available, size_t available2) |
| void | timer_tick_ () |
| void | write_speaker_ () |
| bool | start_udp_socket_ () |
Protected Member Functions inherited from esphome::Component | |
| friend | void::setup () |
| friend | void::original_setup () |
| void | set_component_source_ (uint8_t index) |
| Set where this component was loaded from for some debug messages. | |
| virtual void | call_setup () |
| void | call_dump_config_ () |
| void | enable_loop_slow_path_ () |
| void | set_component_state_ (uint8_t state) |
| Helper to set component state (clears state bits and sets new state) | |
| bool | set_status_flag_ (uint8_t flag) |
| Helper to set a status LED flag on both this component and the app. | |
| void | set_interval (const char *name, uint32_t interval, std::function< void()> &&f) |
| Set an interval function with a const char* name. | |
| void | set_interval (uint32_t id, uint32_t interval, std::function< void()> &&f) |
| Set an interval function with a numeric ID (zero heap allocation). | |
| void | set_interval (InternalSchedulerID id, uint32_t interval, std::function< void()> &&f) |
| void | set_interval (uint32_t interval, std::function< void()> &&f) |
| bool | cancel_interval (const char *name) |
| Cancel an interval function. | |
| bool | cancel_interval (uint32_t id) |
| bool | cancel_interval (InternalSchedulerID id) |
| void | set_timeout (const char *name, uint32_t timeout, std::function< void()> &&f) |
| Set a timeout function with a const char* name. | |
| void | set_timeout (uint32_t id, uint32_t timeout, std::function< void()> &&f) |
| Set a timeout function with a numeric ID (zero heap allocation). | |
| void | set_timeout (InternalSchedulerID id, uint32_t timeout, std::function< void()> &&f) |
| void | set_timeout (uint32_t timeout, std::function< void()> &&f) |
| bool | cancel_timeout (const char *name) |
| Cancel a timeout function. | |
| bool | cancel_timeout (uint32_t id) |
| bool | cancel_timeout (InternalSchedulerID id) |
| void | defer (const char *name, std::function< void()> &&f) |
| Defer a callback to the next loop() call with a const char* name. | |
| void | defer (std::function< void()> &&f) |
| Defer a callback to the next loop() call. | |
| void | defer (uint32_t id, std::function< void()> &&f) |
| Defer a callback with a numeric ID (zero heap allocation) | |
| bool | cancel_defer (const char *name) |
| Cancel a defer callback using the specified name, name must not be empty. | |
| bool | cancel_defer (uint32_t id) |
| void | status_clear_warning_slow_path_ () |
| void | status_clear_error_slow_path_ () |
Definition at line 107 of file voice_assistant.h.
| esphome::voice_assistant::VoiceAssistant::VoiceAssistant | ( | ) |
Definition at line 35 of file voice_assistant.cpp.
|
protected |
Definition at line 122 of file voice_assistant.cpp.
|
protected |
Definition at line 167 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::client_subscription | ( | api::APIConnection * | client, |
| bool | subscribe ) |
Definition at line 544 of file voice_assistant.cpp.
|
protected |
Definition at line 191 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::failed_to_start | ( | ) |
Definition at line 617 of file voice_assistant.cpp.
|
inline |
Definition at line 219 of file voice_assistant.h.
|
inline |
Definition at line 215 of file voice_assistant.h.
|
inline |
Definition at line 216 of file voice_assistant.h.
| const Configuration & esphome::voice_assistant::VoiceAssistant::get_configuration | ( | ) |
Definition at line 1106 of file voice_assistant.cpp.
|
inline |
Definition at line 200 of file voice_assistant.h.
|
inline |
Definition at line 212 of file voice_assistant.h.
|
inline |
Definition at line 145 of file voice_assistant.h.
|
inline |
Definition at line 213 of file voice_assistant.h.
|
inline |
Definition at line 196 of file voice_assistant.h.
|
inline |
Definition at line 198 of file voice_assistant.h.
|
inline |
Definition at line 197 of file voice_assistant.h.
|
inline |
Definition at line 136 of file voice_assistant.h.
|
inline |
Definition at line 199 of file voice_assistant.h.
|
overridevirtual |
Reimplemented from esphome::Component.
Definition at line 77 of file voice_assistant.cpp.
|
inline |
Definition at line 201 of file voice_assistant.h.
|
inline |
Definition at line 209 of file voice_assistant.h.
|
inline |
Definition at line 202 of file voice_assistant.h.
|
inline |
Definition at line 203 of file voice_assistant.h.
Definition at line 225 of file voice_assistant.h.
Definition at line 226 of file voice_assistant.h.
Definition at line 223 of file voice_assistant.h.
|
inline |
Definition at line 227 of file voice_assistant.h.
Definition at line 224 of file voice_assistant.h.
|
inline |
Definition at line 229 of file voice_assistant.h.
|
inline |
Definition at line 210 of file voice_assistant.h.
|
inline |
Definition at line 211 of file voice_assistant.h.
|
inline |
Definition at line 206 of file voice_assistant.h.
|
inline |
Definition at line 205 of file voice_assistant.h.
|
inline |
Definition at line 208 of file voice_assistant.h.
|
protected |
Definition at line 260 of file voice_assistant.cpp.
|
inline |
Definition at line 184 of file voice_assistant.h.
|
inline |
Definition at line 182 of file voice_assistant.h.
|
overridevirtual |
Reimplemented from esphome::Component.
Definition at line 285 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::on_announce | ( | const api::VoiceAssistantAnnounceRequest & | msg | ) |
Definition at line 1053 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::on_audio | ( | const api::VoiceAssistantAudio & | msg | ) |
Definition at line 978 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::on_event | ( | const api::VoiceAssistantEventResponse & | msg | ) |
Definition at line 760 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::on_set_configuration | ( | const std::vector< std::string > & | active_wake_words | ) |
Definition at line 1085 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::on_timer_event | ( | const api::VoiceAssistantTimerEventResponse & | msg | ) |
Definition at line 994 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::request_start | ( | bool | continuous, |
| bool | silence_detection ) |
Definition at line 675 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::request_stop | ( | ) |
Definition at line 690 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::reset_conversation_id | ( | ) |
Definition at line 207 of file voice_assistant.cpp.
|
inline |
Definition at line 191 of file voice_assistant.h.
|
inline |
Definition at line 183 of file voice_assistant.h.
|
inline |
Definition at line 193 of file voice_assistant.h.
|
inline |
Definition at line 228 of file voice_assistant.h.
|
inline |
Definition at line 130 of file voice_assistant.h.
|
inline |
Definition at line 121 of file voice_assistant.h.
|
inline |
Definition at line 118 of file voice_assistant.h.
|
inline |
Definition at line 119 of file voice_assistant.h.
|
inline |
Definition at line 188 of file voice_assistant.h.
|
inline |
Definition at line 124 of file voice_assistant.h.
|
protected |
Definition at line 604 of file voice_assistant.cpp.
|
protected |
Definition at line 611 of file voice_assistant.cpp.
|
inline |
Definition at line 186 of file voice_assistant.h.
|
inline |
Definition at line 192 of file voice_assistant.h.
|
inline |
Definition at line 221 of file voice_assistant.h.
|
overridevirtual |
Reimplemented from esphome::Component.
Definition at line 37 of file voice_assistant.cpp.
|
protected |
Definition at line 736 of file voice_assistant.cpp.
|
protected |
Definition at line 747 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::start_streaming | ( | ) |
Definition at line 623 of file voice_assistant.cpp.
| void esphome::voice_assistant::VoiceAssistant::start_streaming | ( | struct sockaddr_storage * | addr, |
| uint16_t | port ) |
Definition at line 640 of file voice_assistant.cpp.
|
protected |
Definition at line 79 of file voice_assistant.cpp.
|
protected |
Definition at line 212 of file voice_assistant.cpp.
|
protected |
Definition at line 1044 of file voice_assistant.cpp.
|
protected |
Definition at line 526 of file voice_assistant.cpp.
|
protected |
Definition at line 272 of file voice_assistant.h.
|
protected |
Definition at line 323 of file voice_assistant.h.
|
protected |
Definition at line 339 of file voice_assistant.h.
|
protected |
Definition at line 314 of file voice_assistant.h.
|
protected |
Definition at line 313 of file voice_assistant.h.
|
protected |
Definition at line 327 of file voice_assistant.h.
|
protected |
Definition at line 269 of file voice_assistant.h.
|
protected |
Definition at line 270 of file voice_assistant.h.
|
protected |
Definition at line 343 of file voice_assistant.h.
|
protected |
Definition at line 334 of file voice_assistant.h.
|
protected |
Definition at line 331 of file voice_assistant.h.
|
protected |
Definition at line 306 of file voice_assistant.h.
|
protected |
Definition at line 329 of file voice_assistant.h.
|
protected |
Definition at line 337 of file voice_assistant.h.
|
protected |
Definition at line 248 of file voice_assistant.h.
|
protected |
Definition at line 253 of file voice_assistant.h.
|
protected |
Definition at line 266 of file voice_assistant.h.
|
protected |
Definition at line 281 of file voice_assistant.h.
|
protected |
Definition at line 267 of file voice_assistant.h.
|
protected |
Definition at line 250 of file voice_assistant.h.
|
protected |
Definition at line 261 of file voice_assistant.h.
|
protected |
Definition at line 251 of file voice_assistant.h.
|
protected |
Definition at line 252 of file voice_assistant.h.
|
protected |
Definition at line 304 of file voice_assistant.h.
|
protected |
Definition at line 297 of file voice_assistant.h.
|
protected |
Definition at line 301 of file voice_assistant.h.
|
protected |
Definition at line 285 of file voice_assistant.h.
|
protected |
Definition at line 284 of file voice_assistant.h.
|
protected |
Definition at line 346 of file voice_assistant.h.
|
protected |
Definition at line 326 of file voice_assistant.h.
|
protected |
Definition at line 316 of file voice_assistant.h.
|
protected |
Definition at line 315 of file voice_assistant.h.
|
protected |
Definition at line 332 of file voice_assistant.h.
|
protected |
Definition at line 247 of file voice_assistant.h.
|
protected |
Definition at line 288 of file voice_assistant.h.
|
protected |
Definition at line 289 of file voice_assistant.h.
|
protected |
Definition at line 290 of file voice_assistant.h.
|
protected |
Definition at line 291 of file voice_assistant.h.
|
protected |
Definition at line 292 of file voice_assistant.h.
|
protected |
Definition at line 254 of file voice_assistant.h.
|
protected |
Definition at line 299 of file voice_assistant.h.
|
protected |
Definition at line 336 of file voice_assistant.h.
|
protected |
Definition at line 294 of file voice_assistant.h.
|
protected |
Definition at line 263 of file voice_assistant.h.
|
protected |
Definition at line 256 of file voice_assistant.h.
|
protected |
Definition at line 255 of file voice_assistant.h.
Definition at line 279 of file voice_assistant.h.
Definition at line 277 of file voice_assistant.h.
Definition at line 276 of file voice_assistant.h.
|
protected |
Definition at line 282 of file voice_assistant.h.
|
protected |
Definition at line 280 of file voice_assistant.h.
Definition at line 278 of file voice_assistant.h.
|
protected |
Definition at line 274 of file voice_assistant.h.
|
protected |
Definition at line 264 of file voice_assistant.h.
|
protected |
Definition at line 298 of file voice_assistant.h.
|
protected |
Definition at line 265 of file voice_assistant.h.
|
protected |
Definition at line 259 of file voice_assistant.h.
|
protected |
Definition at line 258 of file voice_assistant.h.
|
protected |
Definition at line 340 of file voice_assistant.h.
|
protected |
Definition at line 325 of file voice_assistant.h.
|
protected |
Definition at line 328 of file voice_assistant.h.
|
protected |
Definition at line 293 of file voice_assistant.h.
|
protected |
Definition at line 308 of file voice_assistant.h.
|
protected |
Definition at line 262 of file voice_assistant.h.