Author Topic: Wait for currently-playing TTS to complete before voicing additional TTS  (Read 3007 times)

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Is it possible to add an option to make downstream (later in action list) TTS wait for upstream (earlier in action list) TTS to complete? Or perhaps a token could be created that indicates true/false (1/0) whether or not VA is currently voicing TTS?

I understand that I can use the "wait until speech completes before continuing command" option to make sure that Upstream TTS gets fully voiced, but that also forces the rest of the code to wait for the Upstream TTS to complete. And using the "this completes all other currently-playing TTS" option might produce wonky-sounding output depending on the content being voiced. This feature request would most benefit the situation where a user has:

Code: [Select]
Upstream TTS
non-TTS code that takes a few seconds to process
Downstream TTS

So basically the Upstream TTS would be voiced while the rest of the non-TTS code is executed in the background. Then if the background code finishes before the Upstream TTS is fully voiced, the Downstream TTS would wait to activate (not interrupting the Upstream TTS). Or having a token for determining whether or not TTS is being voiced may provide additional programming benefits and flexibility.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
This is a duplicate of this request.

As you've noted, with the token you could do
Code: [Select]
Upstream TTS
non-TTS code that takes a few seconds to process
Start Loop While : [{TTS_ACTIVE}] Equals '1'
End Loop
Downstream TTS

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Nice catch Pfeil, thanks for pointing that out