Practice English Speaking&Listening with: Cara Mudah Membuat Aplikasi Text to Speech di Android

Normal
(0)
Difficulty: 0

Start by creating new Android Application Project, insert your app name, project nama, and package name

Choose image as ICON for the app

Choose blank activity

Let it in default value

Delete all XML code

Insert XML components :LinearLayout, TextView, EditText, and Button

Delete onCreateOptionsMenu

Create EditText, Button, dan TextToSpeech new variables

Connect previous variables to XML IDs

Add setOnClickListener in each Button

[ IMPORTANT ] create new TextToSpeech

Add implements TextToSpeech.OnInitListener and OnClickListener

Complete your code in onClick and onInit

isEmpty() needs API version 9 so you have to change the value of minSdkVersion in AndroidManifest.xml to 9

Run your application on emulator or Android smartphone

Insert some words or sentences

Thanks for watching, dont' forget to comment, like, and subscribe to this channel :-)

The Description of Cara Mudah Membuat Aplikasi Text to Speech di Android