From ea8bb28d21e28fe2b07e13adfb642c04854bd9d2 Mon Sep 17 00:00:00 2001 From: Vincent KHERBACHE Date: Tue, 8 Jan 2019 00:13:09 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20french=20Amazon=20Polly=20voice=20'L?= =?UTF-8?q?=C3=A9a'.=20(#19852)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The accent must be removed (Léa -> Lea) just like the other voices (eg. Celine, Peneloppe) to match with Amazon voices ID. Fun fact: there is no alternative name for "Léa" on Amazon Polly documentation: https://docs.aws.amazon.com/en_us/polly/latest/dg/voicelist.html, probably just omitted. Mitigation: alternative voices (with and without accents) can be put into `SUPPORTED_VOICES`, both `voice.get('Id')` and `voice.get('Name')` must be then checked for a match. This fixes #19802. --- homeassistant/components/tts/amazon_polly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/tts/amazon_polly.py b/homeassistant/components/tts/amazon_polly.py index 1dfb741bb42..0102a1fec09 100644 --- a/homeassistant/components/tts/amazon_polly.py +++ b/homeassistant/components/tts/amazon_polly.py @@ -43,7 +43,7 @@ SUPPORTED_VOICES = [ 'Joey', 'Justin', 'Matthew', 'Ivy', 'Joanna', 'Kendra', 'Kimberly', 'Salli', # English 'Geraint', # English Welsh - 'Mathieu', 'Celine', 'Léa', # French + 'Mathieu', 'Celine', 'Lea', # French 'Chantal', # French Canadian 'Hans', 'Marlene', 'Vicki', # German 'Aditi', # Hindi