correct SDK limit for playSilentUtterance
This commit is contained in:
parent
f90105a982
commit
d4ac8fd417
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
|
|||
// Delay first prompt of each batch to allow BT SCO connection being established
|
||||
if (ctx.getSettings().AUDIO_STREAM_GUIDANCE.get() == 0) {
|
||||
ttsRequests++;
|
||||
if (android.os.Build.VERSION.SDK_INT <= 21) {
|
||||
if (android.os.Build.VERSION.SDK_INT < 21) {
|
||||
params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID,""+System.currentTimeMillis());
|
||||
mTts.playSilence(BT_SCO_DELAY, TextToSpeech.QUEUE_ADD, params);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue