Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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);
- // 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);
- startActivity(intent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement