You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A speaker pack that fails to unpack still stops transcription #38
The verified-pack resolver unpacks every verified speech pack into one cache folder, keyed by the whole set of packs (resolve_verified_models_dir_in, app/src-tauri/src/models.rs:378-399). If any one pack fails to unpack, the resolver returns the error (extract_zip_into(...)?). This happens on the first run after the set of packs changes, for example when the disk is full.
So a speaker-detection pack that fails to unpack stops every transcription:
Import and crash recovery fail before transcribing, with speakers on or off.
Record fails to start.
After #37 (fixing #35), missing speaker models and speaker-labelling failures no longer cost the transcript. Unpacking is the one place a broken speaker pack can still stop transcription.
Unpack and cache each pack separately, and resolve transcription from the transcription and VAD packs only. Unpack the speaker pack inside the speaker-labelling step, so a failure there becomes the usual "Speakers couldn't be labelled" note.
This changes the cache layout and the trust boundary the resolver enforces, so it needs its own design and tests.
A note for whoever picks this up: after #37 the app relies on the shared cache folder. It resolves models for transcription only, and commands::speaker_engine then finds the speaker models in that same folder when their pack is installed. A missing speaker model there becomes the "speaker-detection pack isn't installed" note. A comment on resolve_verified_models_dir_in in models.rs says so.
If packs are cached separately, the speaker step has to ask the resolver for the speaker pack itself. Otherwise every labelled transcript will report that the pack isn't installed. No test would catch that: the app tests mock invoke, and nothing in Rust covers the speaker step. There's also no signed speaker-detection fixture pack in fixtures/modelpack/packs to write one with.
Activity
fix(app): check for speaker models before Stop reads the recording
refactor(app): one place builds a new transcript and its speaker note
billlyzhaoyh commentedon Nov 26, 2026
A note for whoever picks this up: after #37 the app relies on the shared cache folder. It resolves models for transcription only, and
commands::speaker_enginethen finds the speaker models in that same folder when their pack is installed. A missing speaker model there becomes the "speaker-detection pack isn't installed" note. A comment onresolve_verified_models_dir_ininmodels.rssays so.If packs are cached separately, the speaker step has to ask the resolver for the speaker pack itself. Otherwise every labelled transcript will report that the pack isn't installed. No test would catch that: the app tests mock
invoke, and nothing in Rust covers the speaker step. There's also no signed speaker-detection fixture pack infixtures/modelpack/packsto write one with.