# Queue for audiosink/GoogleTTS

**URL:** <https://community.openhab.org/t/queue-for-audiosink-googletts/156323>\
**Category:** Scripts & Rules\
**Tags:** googletts, cache, cromecast, amazonechocontrol\
**Created:** [June 1, 2024, 8:06am UTC](https://community.openhab.org/t/queue-for-audiosink-googletts/156323 "2024-06-01T08:06:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [June 1, 2024, 3:26pm UTC](https://community.openhab.org/t/queue-for-audiosink-googletts/156323/2 "2024-06-01T15:26:29Z")

</div>

I don’t do tts much any more. The family thought it was creepy. But I do know that what I used to do and what people used to recommend was to add in delays between command to tts to give it time to finish. A quick count of words can be used as a reasonable factor.

Centralize all the commands to tts in one role using the Command Item approach from [Design Pattern: Separation of Behaviors](https://community.openhab.org/t/design-pattern-separation-of-behaviors/15886) and then use [Design Pattern: Gate Keeper](https://community.openhab.org/t/design-pattern-gate-keeper/36483) to queue up and space out the calls to tts. You can add a limit there too to count the number of characters sent for the month and generate an error when you get over 5000.

---

_[View the full topic](https://community.openhab.org/t/queue-for-audiosink-googletts/156323)._
