Hi
I already use tts to make announcements via node red it works perfectly but I would like to make use of the effects that alexa has if I call a service in home assistant using this as a message: <amazon:effect name='whispered'>I am whispering this.</amazon:effect>
I get back “I am whispering this” if I try the same in node red I get the whole thing said back to as plain text. I do mean the whole thing "less than amazon effect name equals whispered etc.
I have tried putting it into a template node as I had hoped to make use of jinja but so far nothing. Does anyone have an idea or can point me in the correct direction please.
edit
for anyone looking for answers here the best I could do is add the Alexa formatting to the call service node
If i tried to add any before the call service node it just reads it back to me as plain text if I do it as the example flow below it works.
Other options are listed here
Speech Synthesis Markup Language (SSML) Reference | Alexa Skills Kit (amazon.com)
[{"id":"e1dfe6d315d2a7d0","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"62d8a7a69f802f9a","type":"inject","z":"e1dfe6d315d2a7d0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":160,"wires":[["fec58f249801cadb"]]},{"id":"fec58f249801cadb","type":"api-render-template","z":"e1dfe6d315d2a7d0","name":"Daily Brief","server":"e7f76522.c1a328","version":0,"template":"This is a test","resultsLocation":"payload","resultsLocationType":"msg","templateLocation":"template","templateLocationType":"msg","x":650,"y":160,"wires":[["41285728ef953d3a"]]},{"id":"41285728ef953d3a","type":"api-call-service","z":"e1dfe6d315d2a7d0","name":"Alexa ","server":"e7f76522.c1a328","version":5,"debugenabled":false,"domain":"notify","service":"alexa_media_dining_room_echo","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"<amazon:domain name=\\\"conversational\\\">{{payload}}</amazon:domain>\",\"data\":{\"type\":\"announce\",\"method\":\"speak\"},\"target\":[\"media_player.dining_room_echo\"]}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":900,"y":160,"wires":[[]]},{"id":"e7f76522.c1a328","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]
Hopefully this helps someone and if you do figure out how to do this with the formatting in the message please let me know I would like to make use of more than just changing everything said.