Static Public Attributes | |
| None | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Private Attributes | |
| __last_processed | |
Static Private Attributes | |
| bool | _attr_should_poll = False |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Represent a single STT provider.
Definition at line 156 of file __init__.py.
| None homeassistant.components.stt.SpeechToTextEntity.async_internal_added_to_hass | ( | self | ) |
Call when the provider entity is added to hass.
Reimplemented from homeassistant.helpers.restore_state.RestoreEntity.
Definition at line 200 of file __init__.py.
| SpeechResult homeassistant.components.stt.SpeechToTextEntity.async_process_audio_stream | ( | self, | |
| SpeechMetadata | metadata, | ||
| AsyncIterable[bytes] | stream | ||
| ) |
Process an audio stream to STT service. Only streaming content is allowed!
Definition at line 224 of file __init__.py.
| bool homeassistant.components.stt.SpeechToTextEntity.check_metadata | ( | self, | |
| SpeechMetadata | metadata | ||
| ) |
Check if given metadata supported by this provider.
Definition at line 233 of file __init__.py.
| SpeechResult homeassistant.components.stt.SpeechToTextEntity.internal_async_process_audio_stream | ( | self, | |
| SpeechMetadata | metadata, | ||
| AsyncIterable[bytes] | stream | ||
| ) |
Process an audio stream to STT service. Only streaming content is allowed!
Definition at line 212 of file __init__.py.
Return the state of the provider entity.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 164 of file __init__.py.
| list[AudioBitRates] homeassistant.components.stt.SpeechToTextEntity.supported_bit_rates | ( | self | ) |
Return a list of supported bit rates.
Reimplemented in homeassistant.components.wyoming.stt.WyomingSttProvider, homeassistant.components.google_cloud.stt.GoogleCloudSpeechToTextEntity, homeassistant.components.demo.stt.DemoProviderEntity, and homeassistant.components.cloud.stt.CloudProviderEntity.
Definition at line 187 of file __init__.py.
| list[AudioChannels] homeassistant.components.stt.SpeechToTextEntity.supported_channels | ( | self | ) |
Return a list of supported channels.
Reimplemented in homeassistant.components.wyoming.stt.WyomingSttProvider, homeassistant.components.google_cloud.stt.GoogleCloudSpeechToTextEntity, homeassistant.components.demo.stt.DemoProviderEntity, and homeassistant.components.cloud.stt.CloudProviderEntity.
Definition at line 197 of file __init__.py.
| list[AudioCodecs] homeassistant.components.stt.SpeechToTextEntity.supported_codecs | ( | self | ) |
Return a list of supported codecs.
Reimplemented in homeassistant.components.wyoming.stt.WyomingSttProvider, homeassistant.components.google_cloud.stt.GoogleCloudSpeechToTextEntity, homeassistant.components.demo.stt.DemoProviderEntity, and homeassistant.components.cloud.stt.CloudProviderEntity.
Definition at line 182 of file __init__.py.
| list[AudioFormats] homeassistant.components.stt.SpeechToTextEntity.supported_formats | ( | self | ) |
Return a list of supported formats.
Reimplemented in homeassistant.components.wyoming.stt.WyomingSttProvider, homeassistant.components.google_cloud.stt.GoogleCloudSpeechToTextEntity, homeassistant.components.demo.stt.DemoProviderEntity, and homeassistant.components.cloud.stt.CloudProviderEntity.
Definition at line 177 of file __init__.py.
| list[str] homeassistant.components.stt.SpeechToTextEntity.supported_languages | ( | self | ) |
Return a list of supported languages.
Reimplemented in homeassistant.components.wyoming.stt.WyomingSttProvider, homeassistant.components.google_cloud.stt.GoogleCloudSpeechToTextEntity, homeassistant.components.demo.stt.DemoProviderEntity, and homeassistant.components.cloud.stt.CloudProviderEntity.
Definition at line 172 of file __init__.py.
| list[AudioSampleRates] homeassistant.components.stt.SpeechToTextEntity.supported_sample_rates | ( | self | ) |
Return a list of supported sample rates.
Reimplemented in homeassistant.components.wyoming.stt.WyomingSttProvider, homeassistant.components.google_cloud.stt.GoogleCloudSpeechToTextEntity, homeassistant.components.demo.stt.DemoProviderEntity, and homeassistant.components.cloud.stt.CloudProviderEntity.
Definition at line 192 of file __init__.py.
|
private |
Definition at line 209 of file __init__.py.
|
staticprivate |
Definition at line 159 of file __init__.py.
|
static |
Definition at line 160 of file __init__.py.