|
| 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) |
| |
Amazon Polly speech api provider.
Definition at line 138 of file tts.py.
◆ __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.
◆ 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.
◆ all_engines
| homeassistant.components.amazon_polly.tts.AmazonPollyProvider.all_engines |
◆ all_voices
| homeassistant.components.amazon_polly.tts.AmazonPollyProvider.all_voices |
◆ client
| homeassistant.components.amazon_polly.tts.AmazonPollyProvider.client |
◆ config
| homeassistant.components.amazon_polly.tts.AmazonPollyProvider.config |
◆ name
| homeassistant.components.amazon_polly.tts.AmazonPollyProvider.name |
◆ supported_langs
| homeassistant.components.amazon_polly.tts.AmazonPollyProvider.supported_langs |
The documentation for this class was generated from the following file:
- core/homeassistant/components/amazon_polly/tts.py