Skip to content
Snippets Groups Projects
Select Git revision
  • 17cdc214eb2dce55b4d16b49ce6f43ca128e79a8
  • master default protected
  • ja protected
  • issue-templates protected
  • settings-search protected
  • wordstyles protected
  • trie-js-dumping protected
  • hitbox-boosting protected
  • model-metadata protected
  • lm-2-finetuning-whisperggml protected
  • lm-2-finetuning protected
  • lm-2 protected
  • language_model_experiments protected
  • 0.1.25 protected
  • 0.1.25-rc1 protected
  • 0.1.24.2 protected
  • 0.1.24.2-rc1 protected
  • 0.1.24.1 protected
  • 0.1.24.1-rc1 protected
  • 0.1.24 protected
  • 0.1.24-rc1 protected
  • 0.1.23.2 protected
  • 0.1.23.1 protected
  • 0.1.23 protected
  • 0.1.22 protected
  • 0.1.21 protected
  • 0.1.20 protected
  • 0.1.19 protected
  • 0.1.18 protected
  • 0.1.17 protected
  • 0.1.16 protected
  • 0.1.15 protected
  • 0.1.14.1 protected
33 results

VoiceInputSettingKeys.kt

Blame
  • VoiceInputSettingKeys.kt 1.55 KiB
    package org.futo.inputmethod.latin.uix
    
    import androidx.datastore.preferences.core.booleanPreferencesKey
    import androidx.datastore.preferences.core.intPreferencesKey
    import androidx.datastore.preferences.core.stringSetPreferencesKey
    
    val ENABLE_SOUND = SettingsKey(
        key = booleanPreferencesKey("enable_sounds"),
        default = true
    )
    
    val VERBOSE_PROGRESS = SettingsKey(
        key = booleanPreferencesKey("verbose_progress"),
        default = false
    )
    
    val ENABLE_ENGLISH = SettingsKey(
        key = booleanPreferencesKey("enable_english"),
        default = true
    )
    
    val ENABLE_MULTILINGUAL = SettingsKey(
        key = booleanPreferencesKey("enable_multilingual"),
        default = false
    )
    
    val DISALLOW_SYMBOLS = SettingsKey(
        key = booleanPreferencesKey("disallow_symbols"),
        default = true
    )
    
    val PREFER_BLUETOOTH = SettingsKey(
        key = booleanPreferencesKey("prefer_bluetooth_recording"),
        default = false
    )
    
    val CAN_EXPAND_SPACE = SettingsKey(
        key = booleanPreferencesKey("can_expand_space"),
        default = true
    )
    
    val AUDIO_FOCUS = SettingsKey(
        key = booleanPreferencesKey("request_audio_focus"),
        default = true
    )
    
    val USE_VAD_AUTOSTOP = SettingsKey(
        key = booleanPreferencesKey("use_vad_autostop"),
        default = true
    )
    
    val ENGLISH_MODEL_INDEX = SettingsKey(
        key = intPreferencesKey("english_model_index"),
        default = 0
    )
    
    val MULTILINGUAL_MODEL_INDEX = SettingsKey(
        key = intPreferencesKey("multilingual_model_index"),
        default = 1
    )
    
    val LANGUAGE_TOGGLES = SettingsKey(
        key = stringSetPreferencesKey("enabled_languages"),
        default = setOf()
    )