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

Public Member Functions

None __init__ (self, boto3.client polly_client, ConfigType config, list[str] supported_languages, dict[str, dict[str, str]] all_voices, dict[str, set[str]] all_engines)
 
str|None default_language (self)
 
dict[str, str] default_options (self)
 
TtsAudioType get_tts_audio (self, str message, str language, dict[str, Any] options)
 
list[str] supported_languages (self)
 
list[str] supported_options (self)
 

Public Attributes

 all_engines
 
 all_voices
 
 client
 
 config
 
 name
 
 supported_langs
 

Detailed Description

Amazon Polly speech api provider.

Definition at line 138 of file tts.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.amazon_polly.tts.AmazonPollyProvider.__init__ (   self,
boto3.client  polly_client,
ConfigType  config,
list[str]  supported_languages,
dict[str, dict[str, str]]  all_voices,
dict[str, set[str]]  all_engines 
)
Initialize Amazon Polly provider for TTS.

Definition at line 141 of file tts.py.

Member Function Documentation

◆ default_language()

str | None homeassistant.components.amazon_polly.tts.AmazonPollyProvider.default_language (   self)
Return the default language.

Definition at line 165 of file tts.py.

◆ default_options()

dict[str, str] homeassistant.components.amazon_polly.tts.AmazonPollyProvider.default_options (   self)
Return dict include default options.

Definition at line 170 of file tts.py.

◆ get_tts_audio()

TtsAudioType homeassistant.components.amazon_polly.tts.AmazonPollyProvider.get_tts_audio (   self,
str  message,
str  language,
dict[str, Any]  options 
)
Request TTS file from Polly.

Definition at line 179 of file tts.py.

◆ supported_languages()

list[str] homeassistant.components.amazon_polly.tts.AmazonPollyProvider.supported_languages (   self)
Return a list of supported languages.

Definition at line 160 of file tts.py.

◆ supported_options()

list[str] homeassistant.components.amazon_polly.tts.AmazonPollyProvider.supported_options (   self)
Return a list of supported options.

Definition at line 175 of file tts.py.

Member Data Documentation

◆ all_engines

homeassistant.components.amazon_polly.tts.AmazonPollyProvider.all_engines

Definition at line 154 of file tts.py.

◆ all_voices

homeassistant.components.amazon_polly.tts.AmazonPollyProvider.all_voices

Definition at line 153 of file tts.py.

◆ client

homeassistant.components.amazon_polly.tts.AmazonPollyProvider.client

Definition at line 150 of file tts.py.

◆ config

homeassistant.components.amazon_polly.tts.AmazonPollyProvider.config

Definition at line 151 of file tts.py.

◆ name

homeassistant.components.amazon_polly.tts.AmazonPollyProvider.name

Definition at line 157 of file tts.py.

◆ supported_langs

homeassistant.components.amazon_polly.tts.AmazonPollyProvider.supported_langs

Definition at line 152 of file tts.py.


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