From 291840dd633b307c6e0e98f8fe5d27c8a334de0e Mon Sep 17 00:00:00 2001 From: Joop Date: Mon, 25 Sep 2023 08:13:41 +0200 Subject: [PATCH] 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> --- source/_integrations/amazon_polly.markdown | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source/_integrations/amazon_polly.markdown b/source/_integrations/amazon_polly.markdown index 204df6c3bf0..2873232f806 100644 --- a/source/_integrations/amazon_polly.markdown +++ b/source/_integrations/amazon_polly.markdown @@ -121,3 +121,25 @@ Say with break: Amazon Polly ``` +## 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 `` 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: >- + 나는 천천히 parle.하고 있다식기세척! + language: ko-KR +```