HELP: espeak TTS android

156 views
Skip to first unread message

cpw

unread,
Oct 5, 2010, 11:39:34 AM10/5/10
to TTS-for-Android
Now, i m doing a project which is espeak android which can support
chinese language.
i followed the tutorial below this link:
http://eyes-free.googlecode.com/svn/.../tutorial.html
I cloned the project from this link: http://code.google.com/p/eyes-free/source/checkout
I m using project "tts" then testing espeak with HelloWorld
TTS(coding
from first link).
But when i added chinese character to the coding HelloWorld...espeak
failed to speak out the chinese word,
only english character can speak out.
_______________________________________________
helloWorldTTS.java

package com.myttsproject.helloworld;

import com.google.tts.TTS;

import android.app.Activity;
import android.os.Bundle;
import java.util.Locale;
import java.util.Random;


public class HelloWorldTTS 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.setLanguage("zh");
myTts.speak("Good morning paul 天", 0, null);

}
};
}

----------------------------------------------------------------------------------------------
logcat:

10-05 15:09:29.315: VERBOSE/TtsService(279):
TtsService.setLanguage(cmn, , )
10-05 15:09:29.315: ERROR/SVOX Pico Engine(279):
TtsEngine::setLanguage called with unsupported language
10-05 15:09:29.325: INFO/TTS received:(503): Good morning paul 天
10-05 15:09:29.335: VERBOSE/TtsService(279): TTS service received Good
morning paul 天

Besides that, the logcat showing junk.
Now, i m using eclipse and android2.2 emulator to run espeak.

Could anyone here help me to solve this problem?

TQ
Reply all
Reply to author
Forward
0 new messages