Learn to create android text to speech app in android studio.It uses TextToSpeech class. You can use this in any app to speak your written text, reminder, notes and to create talkitive app. MainActivity.java package com.singh.jassi.texttospeech; import android.speech.tts.TextToSpeech; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import java.util.Locale; public class MainActivity extends AppCompatActivity { TextToSpeech tt; Button b1; EditText ed; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); tt=new TextToSpeech(getApplicationContext(),new TextToSpeech.OnInitListener() { public void onInit(int status) { if(status!=TextToSpeech.ERROR) tt.se
Comments
Post a Comment