Text to Speech in android application

Put your problem here if it does not fit any of the other categories.

Text to Speech in android application

Postby swathi » Sat May 23, 2009 11:02 am

I have tried to do text to speech application . Steps i have done for this are as follows:
1.Install tts_1.2_rc_00.apk file in emulator.
2. Create a project ,activity class is like this

public class SpeechActivity extends Activity {
private TTS myTts;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
myTts = new TTS(this, ttsInitListener, true);
}
private TTS.InitListener ttsInitListener = new TTS.InitListener() {
public void onInit(int version) {
myTts.speak("Hello Myname is swathi muddineni", 0, null);
}
};
}
3.Added TTS_library_stub.jar to project
4.Created sdcard.iso file in android folder
5.run application
6.copy sdcard,iso file from android folder to tools directory.
7.Added "-sdcard C:\android-sdk-windows-1.5_r1\tools\sdcard.iso" in additional emulator command line options.
8.Run application again,"sdcard.iso.lock " folder id created in tools directory .
i didn't get speech, the following errors are shown in logcat

I/ActivityManager( 592): Process com.google.tts (pid 2496) has died.
W/ActivityManager( 592): Scheduling restart of crashed service com.google.tts/.TTSService in 128
E/ActivityThread( 592): Failed to find provider info for android.server.checkin


Can anybody tell the steps for TTS in android
swathi
Freshman
Freshman
 
Posts: 4
Joined: Tue May 12, 2009 7:39 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 15 guests