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

Public Member Functions

None __init__ (self, texttospeech.TextToSpeechAsyncClient client, dict[str, list[str]] voices, str language, vol.Schema options_schema)
 
TtsAudioType async_get_tts_audio (self, str message, str language, dict[str, Any] options)
 
- Public Member Functions inherited from homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider
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)
 

Public Attributes

 name
 

Detailed Description

The Google Cloud TTS API provider.

Definition at line 251 of file tts.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from homeassistant.components.google_cloud.tts.BaseGoogleCloudProvider.

Definition at line 254 of file tts.py.

Member Function Documentation

◆ async_get_tts_audio()

TtsAudioType homeassistant.components.google_cloud.tts.GoogleCloudTTSProvider.async_get_tts_audio (   self,
str  message,
str  language,
dict[str, Any]   options 
)
Load TTS from Google Cloud.

Definition at line 265 of file tts.py.

Member Data Documentation

◆ name

homeassistant.components.google_cloud.tts.GoogleCloudTTSProvider.name

Definition at line 263 of file tts.py.


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