bangla 콘텐츠 용 TTS는 Nexus 5x에서 잘 작동하지만 다른 전화에서는 정상적으로 작동합니다. 다른 즉, 삼성 휴대 전화는 영어 단어 만 말할 수 있지만 bangla 단어는 건너 뜁니다.Bangla의 텍스트가 작동하지 않습니다.
누구든지이 유형의 문제를 가져올 수 있습니까? 제발 도와주세요.
감사합니다.
코드 :
@Override
public void onInit(int i) {
if (i == TextToSpeech.SUCCESS) {
int result = mTextToSpeech.setLanguage(new Locale("bn_IN"));//https://stackoverflow.com/questions/7973023/what-is-the-list-of-supported-languages-locales-on-android
floatRead.setImageResource(R.drawable.ic_volume_off);
if (result == TextToSpeech.LANG_MISSING_DATA
|| result == TextToSpeech.LANG_NOT_SUPPORTED) {
Log.i("TTS", "This Language is not supported");
AppApplication.getInstance().showToast("This Language is not supported");
}
read(mNewsDetails.title, true);
read(mNewsDetails.plain_text, false);
} else {
floatRead.setImageResource(R.drawable.ic_read);
}
}
`
void read(String text, boolean flush) {
if (flush == true) {
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
mTextToSpeech.speak(text, TextToSpeech.QUEUE_FLUSH, null, null);
else
mTextToSpeech.speak(text, TextToSpeech.QUEUE_FLUSH, null);
} else {
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
mTextToSpeech.speak(text, TextToSpeech.QUEUE_ADD, null, null);
else
mTextToSpeech.speak(text, TextToSpeech.QUEUE_ADD, null);
}
}
`