Android – Text to speech simple example

  In this article I will show the most simple way to add text to speech abilities to your Android application. Actually that’s the whole code. You just need to create a TextToSpeech object. Notice the constructor takes 2 parameters, the first is the Context Activity extends from. The second is an OnInitListener which you will need to implement. Ofcourese there are a lot more options but this is the gist of it. You can read more in the Android developer website. Download code example