Season 2 class 219 - Convert Text to Voice

TextToSpeech textToSpeech;

textToSpeech = new TextToSpeech(MainActivity.this, new TextToSpeech.OnInitListener() {
    @Override
public void onInit(int status) {

}
});


btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
textToSpeech.speak("kawsar alam linkon", TextToSpeech.QUEUE_ADD, null, null);
}
});


Post a Comment

0 Comments

Layout Inflater