feat(app): add custom vocabulary support for Parakeet CTC boosting#77
Merged
feat(app): add custom vocabulary support for Parakeet CTC boosting#77
Conversation
Voice Activity Detection removes silence before transcription, improving accuracy and speed for recordings with significant pauses. Uses FluidAudio's Silero VAD v6 model (CoreML/ANE) to detect speech regions, then: - Extracts speech-only audio for transcription - Remaps timestamps back to original timeline New types: SpeechRegion, VadSegmentMap (pure, testable), FluidVAD (wrapper). Settings: vadEnabled (default off), vadThreshold (0.3–0.9 slider). Pipeline: single-source path preprocesses with VAD when enabled. Inspired by @execsumo's work in #70.
Enable domain-specific vocabulary boosting for the Parakeet ASR engine using FluidAudio's CTC keyword spotting pipeline. After TDT transcription, the CTC model runs constrained decoding to detect and correct vocabulary terms (e.g. company names, product names) that TDT may have misrecognized. - Add customVocabularyPath to AppSettings (persisted via UserDefaults) - Add configureVocabulary() to ParakeetEngine that loads vocab file, downloads CTC models, and initializes VocabularyRescorer - Apply CTC rescoring post-transcription in transcribeSegments() - Add vocabulary file picker in SettingsView (Parakeet section) - Wire customVocabularyPath from AppSettings to ParakeetEngine in AppState - Add CustomVocabularyTests (7 tests: defaults, persistence, engine wiring) - Update Package.resolved to match main branch (FluidAudio 0.13.4) Inspired by @execsumo's work in #70.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Inspired by @execsumo's work in #70.
Stacked on #76 (VAD)
Test plan