#Script not heeding mode

1 messages · Page 1 of 1 (latest)

median lark
#

Hey all, I've got a script to run announcements and notifications in the house. I've set it to queued mode, but the different invocations of it override each other in the way you would expect if the mode were restart instead. I'm putting a listing of the script below, can anyone give me a hint what I'm doing wrong?

fair furnace
# median lark

I don't think that tts.speak is a blocking action. so it sends the action then moves on without waiting for it to play.

#

if they are assist satellites you can use assist_satellite.announce instead which will use the default TTS for the pipeline selected on the device.

Even if you only some of them are satellites you could do the tts.speak first for the non satellites then have the satellites play using assist_satellite.announce this would still hold the script for the right amount of time.

Alternatively you could use the media players states and have a wait action to wait for them to finish playing.