Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intervals between Queued Phrases #18

Open
nHiRanZ opened this issue Jul 25, 2018 · 1 comment
Open

Intervals between Queued Phrases #18

nHiRanZ opened this issue Jul 25, 2018 · 1 comment

Comments

@nHiRanZ
Copy link

nHiRanZ commented Jul 25, 2018

Hi, I've been using this library and it's working fantastically. Just wanted to clarify the following issue.

My code is as follows.

speakerbox.setQueueMode(1);
for (Integer orderId : voiceoverIds) {
      speakerbox.play("Order ID " + orderId + " is Ready.");
}

I want to add pauses between each of the queued phrase. I tried with adding a Runnable to playAndOnDone to no avail.

Any help on this? Thanks.

@nHiRanZ
Copy link
Author

nHiRanZ commented Jul 25, 2018

How about a fix using playInterval?

Ex: textToSpeech.playSilence(750, TextToSpeech.QUEUE_ADD, null);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant