home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.65k stars 30.41k forks source link

Voice 'Camila' on Amazon Polly (PT-BR) generates error in config #51734

Closed sirmau closed 3 years ago

sirmau commented 3 years ago

The problem

The documentation asks to look at the site Documentation Amazon the voice options, but it generates an error when using one of the best voices in portuguese brazil. The only one that's neural called Camila.

image

The error appears when it checks the configuration saying it is an invalid configuration: "Invalid config for [tts.amazon_polly]: value must be one of ['Aditi', 'Aditi', 'Amy', 'Astrid', 'Bianca', 'Brian', 'Carla', 'Carmen', 'Celine', 'Chantal', 'Conchita', 'Cristiano', 'Dora', 'Emma', 'Enrique', 'Ewa', 'Filiz', 'Geraint', 'Giorgio', 'Gwyneth', 'Hans', 'Ines', 'Ivy', 'Jacek', 'Jan', 'Joanna', 'Joey', 'Justin', 'Karl', 'Kendra', 'Kimberly', 'Lea', 'Liv', 'Lotte', 'Lucia', 'Lupe', 'Mads', 'Maja', 'Marlene', 'Mathieu', 'Matthew', 'Maxim', 'Mia', 'Miguel', 'Mizuki', 'Naja', 'Nicole', 'Olivia', 'Penelope', 'Raveena', 'Ricardo', 'Ruben', 'Russell', 'Salli', 'Seoyeon', 'Takumi', 'Tatyana', 'Vicki', 'Vitoria', 'Zhiyu'] for dictionary value @ data['voice']. Got 'Camila'. (See ?, line ?)."

What is version of Home Assistant Core has the issue?

2021.5.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Amazon Polly

Link to integration documentation on our website

https://www.home-assistant.io/integrations/amazon_polly

Example YAML snippet

##Config in configuration.yaml:
  - platform: amazon_polly
    aws_access_key_id: !secret aws_access_key_id
    aws_secret_access_key: !secret aws_secret_access_key
    voice:  Camila
    region_name: sa-east-1
    engine: neural

Anything in the logs that might be useful for us?

No response

Additional information

I believe it should just be a matter of including that voice in the integration template. The voice . The other voices of Ricardo and Vitoria available are very bad, very robotic.

LeandroIssa commented 3 years ago

I also had the same problem. It would be good if they resolved if possible, I would be eternally grateful!