Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_translate.tts Namespace Reference

Classes

class  GoogleProvider
 
class  GoogleTTSEntity
 

Functions

GoogleProvider async_get_engine (HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 PLATFORM_SCHEMA
 
list SUPPORT_OPTIONS = ["tld"]
 

Detailed Description

Support for the Google speech service.

Function Documentation

◆ async_get_engine()

GoogleProvider homeassistant.components.google_translate.tts.async_get_engine ( HomeAssistant  hass,
ConfigType  config,
DiscoveryInfoType | None   discovery_info = None 
)
Set up Google speech component.

Definition at line 46 of file tts.py.

◆ async_setup_entry()

None homeassistant.components.google_translate.tts.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Google Translate speech platform via config entry.

Definition at line 55 of file tts.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.google_translate.tts._LOGGER = logging.getLogger(__name__)
private

Definition at line 34 of file tts.py.

◆ PLATFORM_SCHEMA

homeassistant.components.google_translate.tts.PLATFORM_SCHEMA
Initial value:
1 = TTS_PLATFORM_SCHEMA.extend(
2  {
3  vol.Optional(CONF_LANG, default=DEFAULT_LANG): vol.In(SUPPORT_LANGUAGES),
4  vol.Optional(CONF_TLD, default=DEFAULT_TLD): vol.In(SUPPORT_TLD),
5  }
6 )

Definition at line 38 of file tts.py.

◆ SUPPORT_OPTIONS

list homeassistant.components.google_translate.tts.SUPPORT_OPTIONS = ["tld"]

Definition at line 36 of file tts.py.