Bangla 的文字转语音功能不起作用

Text to speech for Bangla not working

孟加拉语内容的 TTS 在我的 Nexus 5x 上运行良好,但在其他设备上运行不正常 phone。 换句话说,三星 phone 只会说英语单词,但会跳过(不会说)孟加拉语单词。

哪位大侠能帮帮我

谢谢。

代码:

@Override
    public void onInit(int i) {
        if (i == TextToSpeech.SUCCESS) {

        int result = mTextToSpeech.setLanguage(new Locale("bn_IN"));//

        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);
        }
    }

`

正在运行。

尝试为我设置语言并正常工作。

@Override public void onInit(int i) { ..........

int result = mTextToSpeech.setLanguage(new Locale("bn_IN"));

ref: 语言 [What is the list of supported languages/locales on Android?

谢谢大家

-Google 通过软件更新更新设备上的 Google TTS 版本,以支持语言环境。
请验证 Google TTS 版本在两个正在测试的设备中是否相同。
根据我的信息,Google Text-to-speech 3.11.12 添加了对 Bangla 的支持以及其他各种改进。
参考:
Google TTS

-三星设备支持:
三星文字转语音引擎
Google 文字转语音引擎

实际上有不同的语言环境支持集。