[RELEASE] Echo Speaks V4

Currently actions does not use parallelSpeak for speak.

it gets into backwards compatibility. We likely should add a new command for this.

parallelSpeak has some restrictions to be aware of:

You want to send the commands in 'close time' (I think I posted about this above), and if you send multiple parallel speaks to the same device in close time, they can 'overwrite' or stomp on each other.

I have updated NOAA alerts app, to be able to use parallel speak if someone wants to see some groovy code for this.

When using webcore, or rule, and you are using parallel speak a lot, there is also a command noOp()

The use is:

  • 3 devices a, b, c

    a.parallelSpeak('hello')
    b.parallelSpeak('hello')
    c.parallelSpeak('hello')
    a.noOp(). // this could have been any of the devices, it causes current command to flush
    a.parallelSpeak('Tony')
    b.parallelSpeak('Tony')
    b.parallelSpeak('Tony')

Should cause all the devices to say hello together, then Tony together without 'stomping' on the previous message.

If you use noOp() too much, you can defeat parallelSpeak operation....

1 Like