Repository navigation
feat: ASR model picker, remove RNNoise, bounded buffers, VAD 1s - #5
Merged
Merged
Conversation
…ence to 1s - Add Moonshine Tiny as a fast/lightweight ASR alternative to Parakeet - Model picker in Options; pipeline hot-restarts on save (no app restart needed) - Remove DenoisingAudioSource (RNNoise) from Pipeline — Parakeet is robust enough to not need preprocessing - Bound AsyncStream in BufferBroadcaster to 200 buffers to prevent unbounded memory growth when ASR falls behind real-time audio - Drop min_silence_duration from 1.5s → 1.0s to reduce segment length and improve ASR latency and memory per inference - Download Moonshine Tiny int8 in tools/download-sherpa.sh and bundle it alongside Parakeet in the app Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Changes
ASR model picker
ASRModelenum (parakeet/moonshine) toSettingsSherpaEngine.preloadModel(_:)now configures Parakeet (NeMo transducer + CoreML) or Moonshine Tiny (int8) based on the settingtools/download-sherpa.shdownloads and bundles both modelsRemove RNNoise
Pipelinenow wiresMicSource/SystemAudioSourcedirectly, removing theDenoisingAudioSourcepreprocessing stepMemory leak fix
BufferBroadcaster.streamwas unbounded by default — while ASR runs synchronously it blocks the VAD loop, letting the audio tap pile up buffers indefinitelyVAD tuning
min_silence_durationreduced from 1.5s → 1.0s — shorter segments, lower per-inference memory and latency