Java 通过意向设置窗口打开Google TTS

Java 通过意向设置窗口打开Google TTS,java,android,Java,Android,有没有可能借助intent打开设置窗口语音合成器谷歌,即选择男性或女性的声音“英语(英国)”? 我需要在设置中选择适合英国的声音,但不是在常规设置TTS Pro com.android.settings.TTS_设置中,我知道我不适合 目前,我有以下代码: <Preference android:summary="@string/pref_gender_voice_summary" android:title="@strin

有没有可能借助intent打开设置窗口语音合成器谷歌,即选择男性或女性的声音“英语(英国)”?

我需要在设置中选择适合英国的声音,但不是在常规设置TTS Pro com.android.settings.TTS_设置中,我知道我不适合

目前,我有以下代码:

<Preference
                android:summary="@string/pref_gender_voice_summary"
                android:title="@string/pref_gender_voice_title">
                <intent android:action="com.android.settings.TTS_SETTINGS"></intent>
            </Preference>

请原谅我使用谷歌翻译是的

    Intent intent = new Intent();

    intent.setAction("com.android.settings.TTS_SETTINGS");
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

    startActivity(intent);

无法从系统设置中选择男声或女声。与TTS引擎相关的语音使用罗马数字Voice I、Voice II、

要在Google TTS引擎中打开语音设置,请参考其软件包名称和“安装TTS数据”操作


可能重复感谢您的回答,但我需要在设置中正确选择英国语音,但不是在常规设置TTS Pro com.android.settings.TTS_设置中我知道我不知道。我注意到不同的设备对“com.android.settings.TTS_设置”的“响应”不同。
// launch the google tts engine voice settings
Intent intent = new Intent();
intent.setPackage("com.google.android.tts");
intent.setAction(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);