TTS (Text to speech) Alexa Working

Just to highlight

how has TTS working see

I have created a very simple example of passing parameters to Lötzimmer script to enable TTS in Home assistant.

Create a shell command in configuration.yaml

shell_command:
  alexa_speak: "/config/alexa_remote_control.sh -d 'name of echo device' -e speak:{{text}}"

This will allow you to pass a text parameter from HA to script

you can test from the developer’s tools services with this JSON

{“text”:“This-is-a-simple-message”} HA doesn’t seem to allow spaces ?

1 Like

This is great - I can’t quite get it to work from the developer tools (works from the command line).
I an using the json:
{"message":"we_are_getting_close"}
but the log file reports:

> [homeassistant.components.notify.command_line] Command failed: /home/HA/config/alexa_wrapper.sh -d 'Kevs echo'

I’ve added debug to the log for notify, but this is all I’m seeing.

Check out Echo Devices (Alexa) as Media Player - Testers Needed

Thanks @jruben4 I’ve installed your custom component successfully.