- Newest
- Most votes
- Most comments
Nevermind! I figured it out. In case someone else has this question, the answer is - set it up in your configuration.yaml file. Here's what I have in mine:
- platform: amazon_polly
aws_access_key_id: !secret aws_keyID
aws_secret_access_key: !secret aws_accesskey
voice: Stephen
engine: generative
To use a different voice like "Stephen" for Amazon Polly in Home Assistant, you're on the right track with your code modification. However, there are a few things to consider:
-
Voice availability: Make sure the "Stephen" voice is available in your region. Stephen is a Neural voice with an English (British) accent.
-
Correct syntax: Your second code snippet is close, but needs a slight adjustment. The 'options' should be at the same level as 'cache', 'message', and 'entity_id'. Try this format:
data: cache: true message: "Hi, it's me Polly! How can I help?" entity_id: media_player.colton_s_echo_show options: voice: Stephen engine: neural language: en-GB action: tts.amazon_polly_say
-
Engine type: Stephen is a Neural voice, so use 'neural' instead of 'generative' for the engine.
-
AWS account setup: Ensure that your AWS account is properly set up and has the necessary permissions to use Amazon Polly. You don't need to specifically activate individual voices in your AWS or Amazon Developer account.
-
Home Assistant configuration: Make sure your Home Assistant is correctly configured to use Amazon Polly, including the right AWS credentials.
If you're still encountering issues after making these adjustments, check the Home Assistant logs for more detailed error messages. This can help pinpoint if there's a problem with permissions, voice availability, or configuration.
Remember, you can always test different voices directly in the Amazon Polly console to ensure they work before implementing them in Home Assistant.
Sources
How Amazon Polly works - Amazon Polly
Listening to voices - Amazon Polly
Voices in Amazon Polly - Amazon Polly
Available voices - Amazon Polly
I edited my second snippet code. I need "Stephen" from the generative engine, from en-US.
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 4 years ago
