Search in sources :

Example 21 with TtsEngines

use of android.speech.tts.TtsEngines in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class TtsEnginePreferenceFragment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.tts_engine_picker);
    mEnginePreferenceCategory = (PreferenceCategory) findPreference("tts_engine_preference_category");
    mEnginesHelper = new TtsEngines(getActivity().getApplicationContext());
    mTts = new TextToSpeech(getActivity().getApplicationContext(), null);
    initSettings();
}
Also used : TtsEngines(android.speech.tts.TtsEngines) TextToSpeech(android.speech.tts.TextToSpeech)

Aggregations

TtsEngines (android.speech.tts.TtsEngines)21 TextToSpeech (android.speech.tts.TextToSpeech)15 ArrayList (java.util.ArrayList)7 DefaultAutofillPreferenceController (com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController)6 GameControllerPreferenceController (com.android.settings.inputmethod.GameControllerPreferenceController)6 PhysicalKeyboardPreferenceController (com.android.settings.inputmethod.PhysicalKeyboardPreferenceController)6 SpellCheckerPreferenceController (com.android.settings.inputmethod.SpellCheckerPreferenceController)6 VirtualKeyboardPreferenceController (com.android.settings.inputmethod.VirtualKeyboardPreferenceController)6 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)6 SettingsEnums (android.app.settings.SettingsEnums)1 ActivityNotFoundException (android.content.ActivityNotFoundException)1 ContentResolver (android.content.ContentResolver)1 Context (android.content.Context)1 Intent (android.content.Intent)1 IntentFilter (android.content.IntentFilter)1 Bundle (android.os.Bundle)1 SearchIndexableResource (android.provider.SearchIndexableResource)1 TTS_DEFAULT_PITCH (android.provider.Settings.Secure.TTS_DEFAULT_PITCH)1 TTS_DEFAULT_RATE (android.provider.Settings.Secure.TTS_DEFAULT_RATE)1 TTS_DEFAULT_SYNTH (android.provider.Settings.Secure.TTS_DEFAULT_SYNTH)1