Is it possible with the help of intent to open the settings window speech synthesizer google, namely, the choice of male or female voices "English (UK)"? image settings TTS
I need to get it right in the settings select the voice for the UK, but not in the general settings TTS Pro com.android.settings.TTS_SETTINGS I know I do not fit.
At the moment I have the following code:
<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>
Forgive me for using Google translator
It is not possible to choose a male or female voice from the system settings. Voices in the TTS engine are named with roman numerals: Voice I, Voice II, ...
Open voice settings by referencing its package name and action "install tts data".
// launch 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);
Yes.
Intent intent = new Intent();
intent.setAction("com.android.settings.TTS_SETTINGS");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With