Android Question Text to Speech and timing

tsteward

Well-Known Member
Licensed User
Longtime User
My app helps people program remotes into their vehicles. The procedures are often time critical and complicated. By following verbal prompts rather than reading and trying to remember instructions I hope to make this process easier.

My question is how can I extend the pause at the end of a sentence. Is there a character or method I can use. As reading a block of text non stop is bad form and may result in going through the process too quickly.

Example text.
 

Branko Milosevic

Active Member
Licensed User
It's an old thread but could be still apropriate to post here. Speak and PlaySilence methods were depreciated in API 21 and replaced by Speak and PlaySilentUtterance
B4X:
playSilentUtterance(long durationInMs, int queueMode, String utteranceId)
How is this addressed in the Library and should the PlaySilence sub be as below for the > API21 level and perhaps perform a check and call one or the other?

B4X:
Sub PlaySilence(DurationMs As Long)
   Dim jo As JavaObject = tts
   jo.RunMethod("playSilentUtterance", Array(DurationMs, 1, Null))
End Sub

Thanks,
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…