tyczj
tyczj

Reputation: 73721

adding a delay to tts

I have a part of my program that uses the TTS engine in a service but I want to add a 3 second delay from when it should be done so that it does not overlap with other audio that would be playing. how can I put that 3 second delay in?

Upvotes: 1

Views: 1687

Answers (1)

Rocker
Rocker

Reputation: 681

use the thread concept. Make a new thread and place the part of code which uses TTS engine in a service and give delay.

Upvotes: 1

Related Questions