Public Attributes | |
| config_entry | |
Public Attributes inherited from homeassistant.components.voip.entity.VoIPEntity | |
| voip_device | |
Static Public Attributes | |
| entity_description = AssistSatelliteEntityDescription(key="assist_satellite") | |
Static Public Attributes inherited from homeassistant.components.assist_satellite.entity.AssistSatelliteEntity | |
| bool | |
| None | |
Private Member Functions | |
| def | _async_send_audio (self, bytes audio_bytes, **kwargs) |
| None | _clear_audio_queue (self) |
| bytes | _load_pcm (self, str file_name) |
| None | _play_tone (self, Tones tone, float silence_before=0.0) |
| None | _run_pipeline (self) |
| None | _send_tts (self, str media_id) |
Private Attributes | |
| _pipeline_had_error | |
| _processing_tone_done | |
| _run_pipeline_task | |
| _tones | |
| _tts_done | |
Static Private Attributes | |
| _attr_name = None | |
| string | _attr_translation_key = "assist_satellite" |
Assist satellite for VoIP devices.
Definition at line 77 of file assist_satellite.py.
| None homeassistant.components.voip.assist_satellite.VoipAssistSatellite.__init__ | ( | self, | |
| HomeAssistant | hass, | ||
| VoIPDevice | voip_device, | ||
| ConfigEntry | config_entry, | ||
tones = Tones.LISTENING | Tones.PROCESSING | Tones.ERROR |
|||
| ) |
Initialize an Assist satellite.
Definition at line 84 of file assist_satellite.py.
|
private |
Send audio in executor.
Definition at line 298 of file assist_satellite.py.
|
private |
Ensure audio queue is empty.
Definition at line 212 of file assist_satellite.py.
|
private |
Load raw audio (16Khz, 16-bit mono).
Definition at line 324 of file assist_satellite.py.
|
private |
Play a tone as feedback to the user if it's enabled.
Definition at line 304 of file assist_satellite.py.
|
private |
Definition at line 170 of file assist_satellite.py.
|
private |
Send TTS audio to caller via RTP.
Definition at line 242 of file assist_satellite.py.
| None homeassistant.components.voip.assist_satellite.VoipAssistSatellite.async_added_to_hass | ( | self | ) |
Run when entity about to be added to hass.
Definition at line 128 of file assist_satellite.py.
| AssistSatelliteConfiguration homeassistant.components.voip.assist_satellite.VoipAssistSatellite.async_get_configuration | ( | self | ) |
Get the current satellite configuration.
Reimplemented from homeassistant.components.assist_satellite.entity.AssistSatelliteEntity.
Definition at line 140 of file assist_satellite.py.
| None homeassistant.components.voip.assist_satellite.VoipAssistSatellite.async_set_configuration | ( | self, | |
| AssistSatelliteConfiguration | config | ||
| ) |
Set the current satellite configuration.
Reimplemented from homeassistant.components.assist_satellite.entity.AssistSatelliteEntity.
Definition at line 146 of file assist_satellite.py.
| None homeassistant.components.voip.assist_satellite.VoipAssistSatellite.async_will_remove_from_hass | ( | self | ) |
Run when entity will be removed from hass.
Definition at line 133 of file assist_satellite.py.
| None homeassistant.components.voip.assist_satellite.VoipAssistSatellite.on_chunk | ( | self, | |
| bytes | audio_bytes | ||
| ) |
Handle raw audio chunk.
Definition at line 156 of file assist_satellite.py.
| None homeassistant.components.voip.assist_satellite.VoipAssistSatellite.on_pipeline_event | ( | self, | |
| PipelineEvent | event | ||
| ) |
Set state based on pipeline stage.
Reimplemented from homeassistant.components.assist_satellite.entity.AssistSatelliteEntity.
Definition at line 217 of file assist_satellite.py.
| str | None homeassistant.components.voip.assist_satellite.VoipAssistSatellite.pipeline_entity_id | ( | self | ) |
Return the entity ID of the pipeline to use for the next conversation.
Reimplemented from homeassistant.components.assist_satellite.entity.AssistSatelliteEntity.
Definition at line 109 of file assist_satellite.py.
| dict[str, Any] | None homeassistant.components.voip.assist_satellite.VoipAssistSatellite.tts_options | ( | self | ) |
Options passed for text-to-speech.
Reimplemented from homeassistant.components.assist_satellite.entity.AssistSatelliteEntity.
Definition at line 119 of file assist_satellite.py.
| str | None homeassistant.components.voip.assist_satellite.VoipAssistSatellite.vad_sensitivity_entity_id | ( | self | ) |
Return the entity ID of the VAD sensitivity to use for the next conversation.
Reimplemented from homeassistant.components.assist_satellite.entity.AssistSatelliteEntity.
Definition at line 114 of file assist_satellite.py.
|
staticprivate |
Definition at line 82 of file assist_satellite.py.
|
staticprivate |
Definition at line 81 of file assist_satellite.py.
|
private |
Definition at line 194 of file assist_satellite.py.
|
private |
Definition at line 106 of file assist_satellite.py.
|
private |
Definition at line 162 of file assist_satellite.py.
|
private |
Definition at line 105 of file assist_satellite.py.
|
private |
Definition at line 102 of file assist_satellite.py.
| homeassistant.components.voip.assist_satellite.VoipAssistSatellite.config_entry |
Definition at line 96 of file assist_satellite.py.
|
static |
Definition at line 80 of file assist_satellite.py.