Play TTS audio on a dashboard

Play a string that you get from wherever on a node-red-dashboard using tts-ultimate and file-buffer.

[{"id":"6bc4d315427a5fdc","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"c066c9643749e434","type":"inject","z":"6bc4d315427a5fdc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"you injected a string","payloadType":"str","x":130,"y":200,"wires":[["7929e185bbb322ed"]]},{"id":"e4d3e936c40c0d0e","type":"debug","z":"6bc4d315427a5fdc","name":"STATUS","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":360,"y":40,"wires":[]},{"id":"7929e185bbb322ed","type":"ttsultimate","z":"6bc4d315427a5fdc","name":"","voice":"en-US","ssml":false,"sonosipaddress":"","sonosvolume":"20","sonoshailing":"0","config":"5d43c616d46c5a44","property":"payload","propertyType":{},"rules":[],"playertype":"noplayer","speakingrate":"1","speakingpitch":"0","unmuteIfMuted":true,"x":190,"y":120,"wires":[["e4d3e936c40c0d0e","eba3500936cd8576"],["eebcdba47f054e2f"]]},{"id":"eebcdba47f054e2f","type":"debug","z":"6bc4d315427a5fdc","name":"ERROR","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":380,"y":80,"wires":[]},{"id":"be39035657a4b5cf","type":"ui_audio","z":"6bc4d315427a5fdc","name":"","group":"010e0bf72d940a0f","voice":"Microsoft Bart - Dutch (Belgium)","always":true,"x":400,"y":420,"wires":[]},{"id":"c64b104ee8c55940","type":"debug","z":"6bc4d315427a5fdc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":450,"y":280,"wires":[]},{"id":"80adc9ee24ce1272","type":"file-buffer","z":"6bc4d315427a5fdc","name":"","mode":"asBuffer","x":340,"y":340,"wires":[["be39035657a4b5cf"]]},{"id":"eba3500936cd8576","type":"function","z":"6bc4d315427a5fdc","name":"","func":"if(!msg.filesArray || !msg.filesArray.length) return msg;\nmsg.payload = msg.filesArray[0].file;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":260,"y":280,"wires":[["c64b104ee8c55940","80adc9ee24ce1272"]]},{"id":"7eabefcd086feb7c","type":"ui_button","z":"6bc4d315427a5fdc","name":"","group":"010e0bf72d940a0f","order":0,"width":0,"height":0,"passthru":false,"label":"button","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"you pushed a button","payloadType":"str","topic":"topic","topicType":"msg","x":110,"y":60,"wires":[["7929e185bbb322ed"]]},{"id":"5d43c616d46c5a44","type":"ttsultimate-config","name":"TTS Service","noderedipaddress":"AUTODISCOVER","noderedport":"1980","purgediratrestart":"purge","ttsservice":"googletranslate","TTSRootFolderPath":""},{"id":"010e0bf72d940a0f","type":"ui_group","name":"Default","tab":"66cbd63b44032853","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"66cbd63b44032853","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

Flow Info

Created 3 years, 6 months ago
Rating: 3 2

Owner

Actions

Rate:

Node Types

Core
  • debug (x3)
  • function (x1)
  • inject (x1)
Other

Tags

  • tts
  • dashboard
  • file-buffer
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option