Woo hoo! Sweet. I got it! It looks up a quote then randomly says the author, pauses, then says the quote.
I wonder if there’s a better way to insert a pause inside of a template in one of the TTS calls instead of needing to time them apart from each other. If I add both attributes of the payload to the same TTS call, it sounds like a run-on sentence.
[{"id":"1ee2036.558b3fd","type":"server-state-changed","z":"80c5bbcf.f30568","name":"Reading Lamp Switch","server":"453178ab.f3be18","entityidfilter":"switch.reading_lamp_1","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":140,"y":60,"wires":[["14a053ca.e902bc"]]},{"id":"2384bd79.6adbe2","type":"api-call-service","z":"80c5bbcf.f30568","name":"Google Say Quote","server":"453178ab.f3be18","service_domain":"tts","service":"google_say","data":"{\"entity_id\":\"media_player.kitchen_speaker, media_player.bathroom_speaker, media_player.master_bedroom_speaker\",\"message\":\"{{payload.body}}\"}","mergecontext":"","output_location":"","output_location_type":"none","x":894,"y":126,"wires":[[]]},{"id":"1fec3c24.76f7e4","type":"function","z":"80c5bbcf.f30568","name":"Random Generator","func":"const randomIndex = Math.floor(Math.random() * msg.payload.length);\nmsg.payload = msg.payload[randomIndex];\n\nreturn msg;","outputs":1,"noerr":0,"x":495,"y":56,"wires":[["5da61539.10ab3c"]]},{"id":"14a053ca.e902bc","type":"http request","z":"80c5bbcf.f30568","name":"Get Quotes","method":"GET","ret":"obj","paytoqs":false,"url":"https://raw.githubusercontent.com/psyked/quotes/master/quotes.json","tls":"","proxy":"","authType":"basic","x":380,"y":126,"wires":[["1fec3c24.76f7e4"]]},{"id":"c99a7b11.1e1d98","type":"inject","z":"80c5bbcf.f30568","name":"Manual Trigger","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":159,"y":145,"wires":[["14a053ca.e902bc"]]},{"id":"5da61539.10ab3c","type":"api-call-service","z":"80c5bbcf.f30568","name":"Google Say Author","server":"453178ab.f3be18","service_domain":"tts","service":"google_say","data":"{\"entity_id\":\"media_player.bathroom_speaker, media_player.kitchen_speaker, media_player.master_bedroom_speaker\",\"message\":\"{{payload.attribution}} says\"}","mergecontext":"","output_location":"","output_location_type":"none","x":618,"y":127,"wires":[["aaaaac24.1e299"]]},{"id":"aaaaac24.1e299","type":"ha-wait-until","z":"80c5bbcf.f30568","name":"Wait 2.5 Seconds","server":"453178ab.f3be18","outputs":2,"entityId":"","property":"","comparator":"is","value":"","valueType":"str","timeout":"2500","timeoutUnits":"milliseconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"x":746.5,"y":55,"wires":[[],["2384bd79.6adbe2"]]},{"id":"453178ab.f3be18","type":"server","z":"","name":"Home Assistant"}]