Skip to content

Commit

Permalink
Add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stypox committed Jul 26, 2024
1 parent 726f2d4 commit d2229d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ import java.util.Locale
import javax.inject.Inject


// TODO this class is really simple at the moment, but many more things could be implemented, e.g.:
// - allowing an SttInputDevice to download/support multiple languages
// - handling more EXTRAs, e.g. EXTRA_LANGUAGE, EXTRA_LANGUAGE_PREFERENCE,
// EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE, EXTRA_LANGUAGE_MODEL, LANGUAGE_MODEL_FREE_FORM,
// LANGUAGE_MODEL_WEB_SEARCH, EXTRA_SEGMENTED_SESSION,
// EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS,
// EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS,
// EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS, EXTRA_AUDIO_SOURCE, EXTRA_AUDIO_SOURCE_CHANNEL_COUNT,
// EXTRA_AUDIO_SOURCE_ENCODING, EXTRA_AUDIO_SOURCE_SAMPLING_RATE, EXTRA_BIASING_STRINGS,
// EXTRA_ENABLE_BIASING_DEVICE_CONTEXT
// - if the SttInputDevice is already busy (e.g. another service is using it, or another part of
// Dicio is using it), that needs to be reported with ERROR_BUSY
@AndroidEntryPoint
class SttService : RecognitionService() {

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/xml/stt_service_metadata.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- TODO actually set a proper settingsActivity -->
<recognition-service
xmlns:android="http://schemas.android.com/apk/res/android"
android:settingsActivity="org.stypox.dicio.MainActivity" />

0 comments on commit d2229d3

Please sign in to comment.