correct SDK limit for playSilentUtterance

This commit is contained in:
sonora 2016-07-05 09:28:12 +02:00
parent f90105a982
commit d4ac8fd417

View file

@ -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 {