Call requires API level 21 (current is 14)

Viewed 1168

Somewhat new to Android Studio. Trying to set up a basic TTS app and am getting this the above error on this line:

t1.speak(toSpeak,TextToSpeech.QUEUE_FLUSH,null,null);

As I said, I am somewhat new to Android Studio so I'm not sure what other files people would need to see in order to resolve this, so let me know and I'll provide more info if needed.

1 Answers
Related