The TTS voice service in Android cannot read Chinese characters now. The following is a piece of code I used to read in English. I hope it will be helpful to you:
Package COM. yu; import Java. util. locale; import android. app. activity; import android. OS. bundle; import android. speech. TTS. texttospeech; import android. speech. TTS. texttospeech. oninitlistener; import android. util. log; import android. view. view; import android. widget. button; import android. widget. edittext; public class ttstestactivity extends activity {button; edittext; texttospeech mspeech; @ overr IDE public void oncreate (bundle savedinstancestate) {super. oncreate (savedinstancestate); setcontentview (R. layout. main); edittext = (edittext) findviewbyid (R. id. edittext); button = (button) findviewbyid (R. id. button); button. setenabled (false); mspeech = new texttospeech (this, new oninitlistener () {@ override public void oninit (INT status) {If (status = texttospeech. success) {int result = mspeech. setla Nguage (locale. english); // set to read only English if (result = texttospeech. lang_missing_data | result = texttospeech. lang_not_supported) {// if the result has no value, print the log in the background. E ("lanagetag", "not use");} else {// when the simulator is started, read the following button in English. setenabled (true); mspeech. speak ("Hello world, hello android", texttospeech. queue_flush, null) ;}}}); button. setonclicklistener (New button. onclicklistener () {@ override public void onclick (Vie W v) {// read the input mspeech in the text box. speak (edittext. gettext (). tostring (), texttospeech. queue_flush, null) ;}}) ;}@ overrideprotected void ondestroy () {super. ondestroy (); If (mspeech! = NULL) {mspeech. Stop (); mspeech. Shutdown ();}}}