Static Public Attributes | |
| None | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Private Attributes | |
| __last_tts_loaded | |
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 TTS engine.
Definition at line 386 of file __init__.py.
| list[Voice] | None homeassistant.components.tts.TextToSpeechEntity.async_get_supported_voices | ( | self, | |
| str | language | ||
| ) |
Return a list of supported voices for a language.
Reimplemented in homeassistant.components.wyoming.tts.WyomingTtsProvider, homeassistant.components.elevenlabs.tts.ElevenLabsTTSEntity, and homeassistant.components.cloud.tts.CloudTTSEntity.
Definition at line 426 of file __init__.py.
| TtsAudioType homeassistant.components.tts.TextToSpeechEntity.async_get_tts_audio | ( | self, | |
| str | message, | ||
| str | language, | ||
| dict[str, Any] | options | ||
| ) |
Load tts audio file from the engine. Return a tuple of file extension and data as bytes.
Reimplemented in homeassistant.components.google_cloud.tts.GoogleCloudTTSEntity, homeassistant.components.elevenlabs.tts.ElevenLabsTTSEntity, and homeassistant.components.cloud.tts.CloudTTSEntity.
Definition at line 502 of file __init__.py.
| None homeassistant.components.tts.TextToSpeechEntity.async_internal_added_to_hass | ( | self | ) |
Call when the entity is added to hass.
Reimplemented from homeassistant.helpers.restore_state.RestoreEntity.
Definition at line 430 of file __init__.py.
| None homeassistant.components.tts.TextToSpeechEntity.async_speak | ( | self, | |
| list[str] | media_player_entity_id, | ||
| str | message, | ||
| bool | cache, | ||
| str | None | language = None, |
||
| dict | None | options = None |
||
| ) |
Speak via a Media Player.
Definition at line 453 of file __init__.py.
| str homeassistant.components.tts.TextToSpeechEntity.default_language | ( | self | ) |
Return the default language.
Reimplemented in homeassistant.components.wyoming.tts.WyomingTtsProvider, homeassistant.components.google_translate.tts.GoogleTTSEntity, and homeassistant.components.cloud.tts.CloudTTSEntity.
Definition at line 411 of file __init__.py.
Return a mapping with the default options.
Reimplemented in homeassistant.components.wyoming.tts.WyomingTtsProvider, and homeassistant.components.cloud.tts.CloudTTSEntity.
Definition at line 421 of file __init__.py.
| TtsAudioType homeassistant.components.tts.TextToSpeechEntity.get_tts_audio | ( | self, | |
| str | message, | ||
| str | language, | ||
| dict[str, Any] | options | ||
| ) |
Load tts audio file from the engine.
Definition at line 496 of file __init__.py.
| TtsAudioType homeassistant.components.tts.TextToSpeechEntity.internal_async_get_tts_audio | ( | self, | |
| str | message, | ||
| str | language, | ||
| dict[str, Any] | options | ||
| ) |
Process an audio stream to TTS service. Only streaming content is allowed!
Definition at line 483 of file __init__.py.
Return the state of the entity.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 399 of file __init__.py.
| list[str] homeassistant.components.tts.TextToSpeechEntity.supported_languages | ( | self | ) |
Return a list of supported languages.
Reimplemented in homeassistant.components.wyoming.tts.WyomingTtsProvider, homeassistant.components.google_translate.tts.GoogleTTSEntity, and homeassistant.components.cloud.tts.CloudTTSEntity.
Definition at line 406 of file __init__.py.
Return a list of supported options like voice, emotions.
Reimplemented in homeassistant.components.wyoming.tts.WyomingTtsProvider, homeassistant.components.google_translate.tts.GoogleTTSEntity, and homeassistant.components.cloud.tts.CloudTTSEntity.
Definition at line 416 of file __init__.py.
|
private |
Definition at line 451 of file __init__.py.
|
staticprivate |
Definition at line 389 of file __init__.py.
|
static |
Definition at line 390 of file __init__.py.