I have referred speak-with-tts-such-as-hindi
and i have done like this:
extToSpeech text2speechHi;
text2speechHi=new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener() {
@Override public void onInit(int status) {
if(status != TextToSpeech.ERROR) {
text2speechHi.setLanguage(new Locale("hin"));
}
}
});
text2speechHi.speak(getResources().getString(R.string.hindi_text), TextToSpeech.QUEUE_FLUSH, null);
But still not reading.... how to see the output ? whether change any device setting in which i run the code?? or need to install anything??
what is this eSpeak
they have mention in that link...any other free option available?? Any one who implemented this successfully????
It is working in fine for English text2speech.setLanguage(Locale.UK);