Skip to content

A speaker pack that fails to unpack still stops transcription #38

Done

Description

@billlyzhaoyh

Problem

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.

Found by a Codex review of #37.

Possible fix

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.

Where

  • app/src-tauri/src/models.rs: resolve_verified_models_dir_in, resolve_verified_models_dir
  • app/src-tauri/src/commands.rs: resolve_models_dir, label_speakers

Activity

  1. billlyzhaoyh commented on Nov 26, 2026

    @billlyzhaoyh
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions