Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_cloud.helpers Namespace Reference

Functions

dict[str, list[str]] async_tts_voices (texttospeech.TextToSpeechAsyncClient client)
 
vol.Schema tts_options_schema (Mapping[str, Any] config_options, dict[str, list[str]] voices, bool from_config_flow=False)
 
vol.Schema tts_platform_schema ()
 
None validate_service_account_info (Mapping[str, str] info)
 

Variables

string DEFAULT_VOICE = ""
 

Detailed Description

Helper classes for Google Cloud integration.

Function Documentation

◆ async_tts_voices()

dict[str, list[str]] homeassistant.components.google_cloud.helpers.async_tts_voices ( texttospeech.TextToSpeechAsyncClient  client)
Get TTS voice model names keyed by language.

Definition at line 40 of file helpers.py.

◆ tts_options_schema()

vol.Schema homeassistant.components.google_cloud.helpers.tts_options_schema ( Mapping[str, Any]  config_options,
dict[str, list[str]]  voices,
bool   from_config_flow = False 
)
Return schema for TTS options with default values from config or constants.

Definition at line 54 of file helpers.py.

◆ tts_platform_schema()

vol.Schema homeassistant.components.google_cloud.helpers.tts_platform_schema ( )
Return schema for TTS platform.

Definition at line 154 of file helpers.py.

◆ validate_service_account_info()

None homeassistant.components.google_cloud.helpers.validate_service_account_info ( Mapping[str, str]  info)
Validate service account info.

Args:
    info: The service account info in Google format.

Raises:
    ValueError: If the info is not in the expected format.

Definition at line 170 of file helpers.py.

Variable Documentation

◆ DEFAULT_VOICE

string homeassistant.components.google_cloud.helpers.DEFAULT_VOICE = ""

Definition at line 37 of file helpers.py.