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 = "" |
Helper classes for Google Cloud integration.
| 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.
| 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.
| vol.Schema homeassistant.components.google_cloud.helpers.tts_platform_schema | ( | ) |
Return schema for TTS platform.
Definition at line 154 of file helpers.py.
| 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.
| string homeassistant.components.google_cloud.helpers.DEFAULT_VOICE = "" |
Definition at line 37 of file helpers.py.