I\'m using Text to speech in my android application.It is working Fine with Google TTs and espeak, But when i used with Samsung TTS it gives following Exception.
I used this to avoid raising the exception.
int result = mTts.isLanguageAvailable(Locale.US); if(result >= 0) result = mTts.setLanguage(Locale.US); else { Locale def = Locale.getDefault(); result = mTts.isLanguageAvailable(def); if(result >=0 ) result = mTts.setLanguage(def); }