MMasmoudi
MMasmoudi

Reputation: 550

Make voice pause between phrases on Android (TalkBack and Text-To-Speech)

I am setting the content description for a TextView using setContentDescription method.

The string passed to this method is a concatenation of two sentences separated by a period "."

When TalkBack ot TTS (Text-To-Speech) read this, it does not mark a pause between the two sentences.

My question is, is there a some way to handle this, a special UTF character for example ?

Upvotes: 2

Views: 3333

Answers (2)

Nino van Hooff
Nino van Hooff

Reputation: 3893

Try a newline charachter.

To read this barcode: "3S REGR 2345", I found that "3 S\nR E G R\n2 3 4 5" got me the result I was after on Samsung TTS.

It will be read as "Three S. R E G R. Two Three Four Five"

Upvotes: 4

AdrianBeukes
AdrianBeukes

Reputation: 21

Uncertain if there is any special character available, but another solution might be to split the speech and add

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

then continue with the rest of the split

Upvotes: 0

Related Questions