Reputation: 550
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
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
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