Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider Class Reference
Inheritance diagram for homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider:
[legend]

Public Member Functions

None __init__ (self, texttospeech.TextToSpeechAsyncClient client, dict[str, list[str]] voices, str language, vol.Schema options_schema)
 
list[Voice]|None async_get_supported_voices (self, str language)
 
str default_language (self)
 
dict[str, Any] default_options (self)
 
list[str] supported_languages (self)
 
list[str] supported_options (self)
 

Private Member Functions

TtsAudioType _async_get_tts_audio (self, str message, str language, dict[str, Any] options)
 

Private Attributes

 _client
 
 _language
 
 _options_schema
 
 _voices
 

Detailed Description

The Google Cloud TTS base provider.

Definition at line 119 of file tts.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider.__init__ (   self,
texttospeech.TextToSpeechAsyncClient  client,
dict[str, list[str]]  voices,
str  language,
vol.Schema  options_schema 
)
Init Google Cloud TTS base provider.

Reimplemented in homeassistant.components.google_cloud.tts.GoogleCloudTTSProvider.

Definition at line 122 of file tts.py.

Member Function Documentation

◆ _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.

Member Data Documentation

◆ _client

homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider._client
private

Definition at line 130 of file tts.py.

◆ _language

homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider._language
private

Definition at line 132 of file tts.py.

◆ _options_schema

homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider._options_schema
private

Definition at line 133 of file tts.py.

◆ _voices

homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider._voices
private

Definition at line 131 of file tts.py.


The documentation for this class was generated from the following file: