Need help to output text for the TSS engine in Rhasspy

I'm working Node-red with Rhasspy and I need to send some text over to the MQTT broker of Rhasspy so the TextToSpeech tool reads what's inside the node function.
I know also there is another way with posting in the texttospeech api with a http request node.
If you know either way,it would help

I'm quoting my flow,if you can check

[ { "id": "fbc537f0d8d457b3", "type": "tab", "label": "Flow 3", "disabled": false, "info": "", "env": [] }, { "id": "7e2ae4fc57e82f43", "type": "websocket in", "z": "fbc537f0d8d457b3", "name": "rhasspy", "server": "63453288.fa038c", "client": "", "x": 350, "y": 180, "wires": [ [ "9de65e40438b9d0a" ] ] }, { "id": "9de65e40438b9d0a", "type": "switch", "z": "fbc537f0d8d457b3", "name": "intent filter", "property": "intent.name", "propertyType": "msg", "rules": [ { "t": "eq", "v": "GetTemp", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 550, "y": 180, "wires": [ [ "bcf9a779c96497aa" ] ] }, { "id": "bcf9a779c96497aa", "type": "function", "z": "fbc537f0d8d457b3", "name": "temp text", "func": "msg.payload = {siteId: \"e357767531799d51\", text: \"The temperature is \" + payload.SI7021.temperature};\n\nmsg.topic = \"hermes/tts/say\";\nmsg.text = msg.payload;\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 180, "wires": [ [ "3468280855aa57c1" ] ] }, { "id": "3468280855aa57c1", "type": "mqtt out", "z": "fbc537f0d8d457b3", "name": "", "topic": "tts", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "403eda9f.2bcee4", "x": 950, "y": 180, "wires": [] }, { "id": "8f93cd996d6d2d3f", "type": "websocket in", "z": "fbc537f0d8d457b3", "name": "", "server": "", "client": "64fe785b.cea468", "x": 441, "y": 319, "wires": [ [ "3ead7ff3882bf296" ] ] }, { "id": "3ead7ff3882bf296", "type": "debug", "z": "fbc537f0d8d457b3", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 670, "y": 400, "wires": [] }, { "id": "63453288.fa038c", "type": "websocket-listener", "path": "ws://192.168.1.12:12101/api/events/intent", "wholemsg": "true" }, { "id": "403eda9f.2bcee4", "type": "mqtt-broker", "name": "Home thesis", "broker": "192.168.1.12", "port": "1883", "clientid": "node-red", "autoConnect": true, "usetls": false, "compatmode": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "sessionExpiry": "" }, { "id": "64fe785b.cea468", "type": "websocket-client", "path": "ws://192.168.1.12:12101/api/events/intent", "tls": "", "wholemsg": "false", "hb": "0", "subprotocol": "" } ]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.