[SOLVED] Help with chromecast TTS speak

I am just wondering whether you have come across this issue. I am making a arrival sensor for my car. There are a few attributes which may have change almost at the same time.

It seems to me that the chromecast speak will stop current TTS playback and start playing a new speak command. I am just wondering whether any one has build a rule that basically implement a queue of TTS speak command. Let me know if you can share tip and and trick to build this queue of TTS.

My recollection (which may be wrong), was that the HE Chromecast integration does both interrupt what is playing, and queues messages.

My recollection of Cast Web API (which is also foggy since I don't use it anymore) was that it wouldn't queue messages, but it also didn't interrupt media that was playing. Just played over the top of it. Also not great.

1 Like

@SmartHomePrimer, Does the HE Chromecast integration able to queues messages? How would one enable it? My observation is that it is not queuing TTS command. It will just stop the current playback and play the new TTS message.

1 Like

Sorry. I haven't a clue if I'm even correct here. All my google devices are packed away and my Sonos too. Moving soon.

I remember posts in the past about a stalled queue with Chromecast. Or maybe it was Sonos and I'm mixing them up. :man_shrugging: Searched, but didn't find what I was looking for.

1 Like

Yeah, I also have found this issue when trying to issue a complex set of speech instructions that depend on some logic. Iā€™ve had to use delays in the rule, between the messages. But itā€™s unreliable because sometimes the rule will execute quickly and sometimes it wonā€™t and so Iā€™ve ended up having to add quite long delays between speech statements to try to get it to be coherent and stop one message truncating the previous one. I could never get the messages to queue properly with settings that worked reliable on my devices. So if there is a better way Iā€™d also be interested to learn it!

Same here. I am glad that It is not specific to my configuration. I hope someone has some solution.

I google TTS queue hubitat. I come across the following pair app and driver in github.

It seems to work. Thanks to DaveGut for the TTS Buffer. I thought that I can just solve it with RM rule. But, the pair app and virtual driver solution should be good for me.