Google tts message variable

I don’t understand what I’m doing wrong here.

I try to set the message for the tts message in the json but it says unexpected ‘m’, the ‘m’ it refers to is the msg ‘m’.

The message of the msg is set using a function node.

How do I pass "message": msg.message.message to the call service node?

You didn’t mention what service you are using for speak but service call needs to receive a payload like this:

so, change the function node and create the message in msg.payload.data.message.
and leave the data box empty in service call node.

1 Like