Skip to content

Comments

Merge whisper and parakeet into one app#217

Draft
kirklandsign wants to merge 3 commits intomainfrom
refactor/shared-asr-module
Draft

Merge whisper and parakeet into one app#217
kirklandsign wants to merge 3 commits intomainfrom
refactor/shared-asr-module

Conversation

@kirklandsign
Copy link
Contributor

No description provided.

Move ModelSettings, ModelSettingsViewModel, ModelSettingsScreen,
FileSelectionRow, FileSelectionDialog, and AsrTheme into a shared
Android library at asr/android/shared/. Both apps now consume this
via Gradle composite builds (includeBuild).

Key design decisions:
- ModelSettings uses Whisper's superset (includes preprocessorPath)
- DEFAULT_DIRECTORY removed from companion; each app passes its own
  default directory to the ViewModel via initialize()
- ModelSettingsViewModel takes supportsPreprocessor flag to control
  whether preprocessor files are scanned
- ModelSettingsScreen takes showPreprocessor param to conditionally
  show the preprocessor selection UI
- AsrTheme replaces WhisperAppTheme and ParakeetAppTheme
- Tests merged (13 ModelSettings tests, 8 ViewModel tests)
Combine both ASR apps into a single app at asr/android/AsrApp/ that
supports both Whisper (streaming via AsrModule) and Parakeet (synchronous
via ParakeetModule) models. The shared library module is folded directly
into the app since there is now only one consumer.

Key changes:
- Add ModelType enum (WHISPER, PARAKEET) to ModelSettings
- Unified download screen with all 7 presets (6 Whisper + 1 Parakeet)
- Click-to-toggle recording for both; Whisper gets 30s auto-stop
- Whisper token post-processing (strip leading/trailing tokens)
- Model type selector in settings screen
- Update CI to replace WhisperDemo/ParakeetDemo with AsrDemo
- Delete whisper/, parakeet/, and asr/android/shared/ directories
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant