The Google Cloud TTS base provider.
Definition at line 119 of file tts.py.
◆ __init__()
| None homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider.__init__ |
( |
|
self, |
|
|
texttospeech.TextToSpeechAsyncClient |
client, |
|
|
dict[str, list[str]] |
voices, |
|
|
str |
language, |
|
|
vol.Schema |
options_schema |
|
) |
| |
◆ _async_get_tts_audio()
| TtsAudioType homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider._async_get_tts_audio |
( |
|
self, |
|
|
str |
message, |
|
|
str |
language, |
|
|
dict[str, Any] |
options |
|
) |
| |
|
private |
Load TTS from Google Cloud.
Definition at line 162 of file tts.py.
◆ async_get_supported_voices()
| list[Voice] | None homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider.async_get_supported_voices |
( |
|
self, |
|
|
str |
language |
|
) |
| |
Return a list of supported voices for a language.
Definition at line 156 of file tts.py.
◆ default_language()
| str homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider.default_language |
( |
|
self | ) |
|
Return the default language.
Definition at line 141 of file tts.py.
◆ default_options()
| dict[str, Any] homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider.default_options |
( |
|
self | ) |
|
Return a dict including default options.
Definition at line 151 of file tts.py.
◆ supported_languages()
| list[str] homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider.supported_languages |
( |
|
self | ) |
|
Return a list of supported languages.
Definition at line 136 of file tts.py.
◆ supported_options()
| list[str] homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider.supported_options |
( |
|
self | ) |
|
Return a list of supported options.
Definition at line 146 of file tts.py.
◆ _client
| homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider._client |
|
private |
◆ _language
| homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider._language |
|
private |
◆ _options_schema
| homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider._options_schema |
|
private |
◆ _voices
| homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider._voices |
|
private |
The documentation for this class was generated from the following file:
- core/homeassistant/components/google_cloud/tts.py