mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Update amazon_polly.markdown (#28992)
* Update amazon_polly.markdown I discovered (https://community.home-assistant.io/t/amazon-polly-ssml/11804) that Polly supports multilanguage and speed controls, which are really nice for certain announcements. As I documented the change, I figured I might as well share here. * tiny tweak --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
d6d43e081f
commit
291840dd63
@ -121,3 +121,25 @@ Say with break:
|
||||
Amazon Polly
|
||||
</speak>
|
||||
```
|
||||
## Advanced usage
|
||||
Amazon Polly supports accented bilingual voices and you may find that you'd prefer the voice you like be slowed down, or speeded up. If the speed of the voice is a concern, Amazon Polly provides the ability to modify this using SSML tags. First enable SSML in configuration:
|
||||
|
||||
```yaml
|
||||
- platform: amazon_polly
|
||||
...
|
||||
text_type: ssml
|
||||
...
|
||||
```
|
||||
|
||||
Note: You now need to enclose all new and previous TTS input within the `<speak></speak>` tags. To use SSML in automation, you can follow these steps, for instance:
|
||||
|
||||
```yaml
|
||||
service: tts.amazon_polly_say
|
||||
data:
|
||||
cache: true
|
||||
entity_id: media_player.mpd
|
||||
message: >-
|
||||
<speak> <prosody rate="75%">나는 <prosody rate="75%">천천히</prosody> <lang
|
||||
xml:lang="fr-FR">parle</lang>.하고 있다식기세척!</speak>
|
||||
language: ko-KR
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user