Hello All, I was originally using Google TTS in Node-Red and everything worked great! I wanted to switch over to Polly for the SSML capabilities and have run into a snag, how to properly format the JSON string for the Call Service node to make this work.
I have updated my configuration.yaml file to include what’s necessary to set up Amazon Polly and can make it work in my automation’s, so I know that the set-up is OK and that this is possible.
What I have done in Node-Red is set up a Template Node and added the following:
{"data_template":{"message":"<speak>test</speak>","entity_id":"media_player.entryway_speaker"}}
This is then sent to the Call Service node for TTS, but it does not work. I have formatted the JSON over and over again with no luck, I even used a YAML to JSON converter thinking that it was my lack of experience with JSON that was the problem but still no luck.
What I am looking for is the correct syntax for a basic string message and the correct syntax for a basic string message that includes the payload data from a previous node ie:{{payload}}.
Don’t think that this is relevant but my set-up is RPI3B running HASS.IO and the Node-Red add-on.
Any help would be greatly appreciated.
Thanks