Back to my voice question from a couple of months back

Sorry folks, this is a twist I hadn't thought of.

A while back I was using Watson TTS to give me audio but it was on THIS machine even though the TTS was done on ANOTHER machine.

Anyway, skipping a bit:
I got it working and all is/was good.
(The two are not exactly.... compatible. So it isn't just a case of changing a SIMPLE thing to change between the two)

New twist.
Now I am also wanting to invoke the GOOGLE TTS but playback on the machine who requested it's speaker.

This is the main bit of code:

[{"id":"3d9635bc.53c14a","type":"ttsultimate","z":"235f16ee6e459f2c","g":"6f171251266fb16d","name":"","voice":"en-AU","ssml":false,"sonosipaddress":"192.168.1.109","sonosvolume":"30","sonoshailing":"0","config":"557d8082.eb5a8","property":"payload","propertyType":{},"rules":[],"playertype":"noplayer","speakingrate":"","speakingpitch":"","unmuteIfMuted":false,"elevenlabsStability":"","elevenlabsSimilarity_boost":"","x":2760,"y":870,"wires":[["17d1372ec4e2fa56"],[]]},{"id":"17d1372ec4e2fa56","type":"switch","z":"235f16ee6e459f2c","g":"6f171251266fb16d","name":"","property":"filesArray","propertyType":"msg","rules":[{"t":"nnull"}],"checkall":"true","repair":false,"outputs":1,"x":2910,"y":872,"wires":[["eddc469dd44ddef0"]]},{"id":"eddc469dd44ddef0","type":"function","z":"235f16ee6e459f2c","g":"6f171251266fb16d","name":"function 16","func":"msg.payload = msg.filesArray[0].file;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":3070,"y":872,"wires":[["b803161ae495cc15"]]},{"id":"b803161ae495cc15","type":"function","z":"235f16ee6e459f2c","g":"6f171251266fb16d","name":"MUST HAVE for volume","func":"if (msg.volume == undefined)\n{\n    msg.volume = 0;\n}\nif (msg.volume > 6)\n{\n    msg.volume = 5;\n}\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":2815,"y":930,"wires":[["4fc8e8dcbbe54ad3"]],"l":false},{"id":"4fc8e8dcbbe54ad3","type":"template","z":"235f16ee6e459f2c","g":"6f171251266fb16d","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{{payload}}} -af \"volume={{volume}}dB\" -f wav - | DISPLAY=:0 aplay","output":"str","x":2920,"y":930,"wires":[["8da5e4f1394ecad2"]]},{"id":"8da5e4f1394ecad2","type":"exec","z":"235f16ee6e459f2c","g":"6f171251266fb16d","command":"ffmpeg -i","addpay":"payload","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":3080,"y":930,"wires":[[],[],["539945426e4329b6","4bdbf5745e5c2a3f"]]},{"id":"557d8082.eb5a8","type":"ttsultimate-config","name":"googletranslate","noderedipaddress":"127.0.0.1","noderedport":"1980","purgediratrestart":"leave","ttsservice":"googletranslate","TTSRootFolderPath":""}]

So, now my question is:
How do I make the code play back with the play audio node so it is heard on the machine who requested the message's speaker?

Sorry, I'm putting my hand up saying I don't know.
That should count for something.

P.S.
It doesn't HAVE TO BE the play audio node.
That was the one I was using originally - not knowing the effect.

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