Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <Preference
  2. android:summary="@string/pref_gender_voice_summary"
  3. android:title="@string/pref_gender_voice_title">
  4. <intent android:action="com.android.settings.TTS_SETTINGS"></intent>
  5. </Preference>
  6.  
  7. Intent intent = new Intent();
  8.  
  9. intent.setAction("com.android.settings.TTS_SETTINGS");
  10. intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  11.  
  12. startActivity(intent);
  13.  
  14. // launch the google tts engine voice settings
  15. Intent intent = new Intent();
  16. intent.setPackage("com.google.android.tts");
  17. intent.setAction(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);
  18. startActivity(intent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement