alias: Polly Test
sequence:
- service: tts.amazon_polly_say
data:
cache: false
entity_id: media_player.stephen
message: |
<speak>
Hello from Polly
</speak>
mode: single
icon: mdi:speaker-wireless
On my first run of the script, I get:
“To send TTS set public URL in integration configuration.”
OK, so I go to Devices & Services->Alexa Media Player->CONFIGURE and enter my Nabu Casa Remote address: https://123456789sjp7k6rycizipuXXXXXXXXXX.ui.nabu.casa
(Significant obfuscation).
Now I get: Failed to call service script/polly_test. <urlopen error [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1000)>
The URL I use is the same one that I connect to my Home Assistant when away.
There are different versions of SSL, like SSL 1.1, SSL 2.0, TLS 1.2, TLS 1.3 and so on.
Some of these are today considered insecure, so some sites will deactivate these versions.
This can lead to a situation where a client not being updated with the more recent versions and therefore ending up in a situation where the client do not have a version that the server consider secure and a SSL connection will therefore not be possible.
See section 2.2 herr.
PS: The versions numbers of the SSL given above are most likely wrong.
I could not remember any of the ones before TLS 1.2, so I just made some up to give an idea.
True.
I do not use the services, so I can not help you with a way to fix it.
I can only help you pinpoint the problem. Others might be to help you with that extra info, I hope.
I don’t recall needing SSL at HA for Alexa Media Player.
Anyway in the UI->Developers Tools->Services try out one of your Alexa devices like the following:
service: notify.alexa_media
data:
message: This is a test
target: media_player.stephen
data:
type: tts
Yeah, I know about Polly. I use it myself. I just dont think its possible to do TTS to an Echo.
Chime TTS, Im sure its possible due to the way it works.
I played around with Alexa Media Player and Amazon’s Poly SSML a few years ago, so I brushed off my notes and tried a few things, and it appears to work with perhaps some limitations of some tags I couldn’t get to work, but here is an example of something I did get to work [Poly Reference]:
service: notify.alexa_media
data:
message: >
<lang xml:lang="fr-FR">
<voice name='Celine'>
Je ne parle pas français.
</voice>/</lang>
data:
type: "announce"
target: "media_player.kitchen_echo"
Another thing too, is it may not be possible to use HA’s Poly platform with Alexa Media Player. I’m not entirely sure this is correct, but I understand that the HA Poly platform will produce an audio file and then hand it to the media player to play. Alexa Media Player doesn’t so easily play audio files locally, so again not sure it would even work.
I installed the chime tts integration and for the first time in many, many, many months. (Maybe the first time ever) And Home Assistant went belly-up. I resorted to going to the basement to reboot the host computer.
Twice.
Can you please guide me to a simple test to see if Chime will even work here?