pindrop icon indicating copy to clipboard operation
pindrop copied to clipboard

[Bug]: Speaker diarization download succeeds but validation checks legacy model directory

Open 7panni opened this issue 3 months ago • 4 comments

System Information

Pindrop: 1.22.5 (26) macOS: 26.3 (Build 25D125) Chip: Apple M4 Hardware: Mac mini (Mac16,10), 16 GB RAM Transcription model: openai_whisper-large-v3_turbo

What happened?

Downloading the required Speaker Diarization model appears to finish, but Pindrop reports:

Download failed: Speaker diarization model files are incomplete after download

The download actually writes a complete model set to FluidAudio's current directory, ~/Library/Application Support/FluidAudio/Models/speaker-diarization, including Segmentation.mlmodelc, Embedding.mlmodelc, PldaRho.mlmodelc, FBank.mlmodelc, config.json, plda-parameters.json, and xvector-transform.json.

Pindrop 1.22.5 still identifies the feature-model directory as speaker-diarization-coreml. Repeated clicks fail immediately after the first complete download because validation looks at the legacy directory name.

A reversible workaround was to preserve the old speaker-diarization-coreml directory and replace it with a symlink to speaker-diarization. After restarting Pindrop, the warning disappeared, the model loaded successfully as offline-community1, and diarization completed on a 35:51 audio file with three observed speakers.

Expected Behavior

After DiarizerModels.download() completes and the required model files exist in FluidAudio's current default directory, Pindrop should recognize Speaker Diarization as downloaded and allow media transcription without requiring a manual filesystem workaround.

Steps to Reproduce

  1. Install or update to Pindrop 1.22.5 (26).
  2. Open media transcription without an already recognized diarization model.
  3. Click Download model.
  4. Wait for the download to complete.
  5. Observe Speaker diarization model files are incomplete after download.
  6. Verify that the complete files were written under FluidAudio/Models/speaker-diarization, while Pindrop expects speaker-diarization-coreml.
  7. Click Download model again; it fails immediately with the same message.

Log File Attachment

Relevant redacted log lines (full log omitted because it contains local filesystem paths):

2026-08-27T20:13:07.241+08:00 [INFO] [Model] Downloading feature model: Speaker Diarization
2026-08-27T20:14:19.774+08:00 [ERROR] [Model] Feature model download failed: Download failed: Speaker diarization model files are incomplete after download
2026-08-27T20:21:41.196+08:00 [INFO] [Model] Downloading feature model: Speaker Diarization
2026-08-27T20:21:41.272+08:00 [ERROR] [Model] Feature model download failed: Download failed: Speaker diarization model files are incomplete after download

After the directory-name compatibility symlink and restart:

2026-08-27T20:31:34.580+08:00 [INFO] [Transcription] Speaker diarization model loaded (offline-community1)
2026-08-27T20:31:42.962+08:00 [INFO] [Transcription] Diarization pipeline=offline-community1 requestedSpeakers=automatic observedSpeakers=3 audioDuration=2151.083s processingDuration=8.381s

Permissions

  • [ ] Microphone access
  • [ ] Accessibility access

7panni avatar Aug 27 '26 12:08 7panni

Confirmed on another installation with the same error while trying to transcribe an audio file from the Library.

Environment

  • Pindrop 1.22.5 (build 26)
  • macOS 26.5.2 (build 25F84)
  • Apple Silicon (arm64)

The Library shows:

Download failed: Speaker diarization model files are incomplete after download

Repeated download attempts fail with the same message. Local filesystem inspection matches the directory mismatch reported here:

  • ~/Library/Application Support/FluidAudio/Models/speaker-diarization exists and contains Embedding.mlmodelc, FBank.mlmodelc, PldaRho.mlmodelc, Segmentation.mlmodelc, config.json, plda-parameters.json, and xvector-transform.json (plus provenance.json).
  • Each compiled model directory contains five non-empty files; the JSON files parse successfully. This is a filesystem check, not an inference/load validation.
  • ~/Library/Application Support/FluidAudio/Models/speaker-diarization-coreml does not exist.

Relevant log excerpt:

2026-10-01T12:48:59.896-04:00 [INFO] [Model] [ModelManager.swift:1234] Downloading feature model: Speaker Diarization
2026-10-01T12:49:46.620-04:00 [ERROR] [Model] [ModelManager.swift:1306] Feature model download failed: Download failed: Speaker diarization model files are incomplete after download
2026-10-02T10:45:22.591-04:00 [INFO] [Model] [ModelManager.swift:1234] Downloading feature model: Speaker Diarization
2026-10-02T10:45:22.744-04:00 [ERROR] [Model] [ModelManager.swift:1306] Feature model download failed: Download failed: Speaker diarization model files are incomplete after download
2026-10-02T10:45:27.219-04:00 [INFO] [Model] [ModelManager.swift:1234] Downloading feature model: Speaker Diarization
2026-10-02T10:45:27.301-04:00 [ERROR] [Model] [ModelManager.swift:1306] Feature model download failed: Download failed: Speaker diarization model files are incomplete after download

No directory workaround has been applied on this installation. The audio file and full application logs are omitted to keep their contents private.

rcoenen avatar Oct 02 '26 14:10 rcoenen

Temporary workaround (no code changes needed)

Root cause: the readiness check validates speaker-diarization-coreml/, but FluidAudio >= v0.13.4 downloads to speaker-diarization/ (Repo.diarizer.folderName strips the -coreml suffix). The download succeeds, then the post-download guard checks the wrong folder and throws "incomplete after download".

Symlink the folder so readiness passes, then relaunch and re-run diarization:

cd ~/Library/Application\ Support/FluidAudio/Models
ln -s speaker-diarization speaker-diarization-coreml

Confirmed on 1.22.5 (build 26), macOS 26.5.2 (arm64): the model loads and the pipeline runs.

The same class of bug affects VAD (FeatureModelType.vad.repoFolderName is silero-vad-coreml, but FluidAudio downloads silero-vad); it fails silently in paragraph segmentation. Workaround if needed:

ln -s silero-vad silero-vad-coreml

Proper fix: derive FeatureModelType.vad/.diarization.repoFolderName from FluidAudio's Repo.vad.folderName / Repo.diarizer.folderName, and update ModelManagerTests.featureModelRepoFolderNamesMatchDownloaderCacheLayout accordingly.

rcoenen avatar Oct 02 '26 16:10 rcoenen

Related to #102 — this is the same location-mismatch family (validation/downloader looking at the wrong directory). Consolidated fix tracked there.

rcoenen avatar Oct 02 '26 17:10 rcoenen

Fixed in 1.23.0. The diarization and VAD folder names now come from FluidAudio, so the check looks where the download writes. The symlink workaround continues to work.

Pindrop 1.23.0 is the final release: https://github.com/watzon/pindrop/releases/tag/v1.23.0. Pindrop is now discontinued and this repository is archived. Sayso replaces it: https://justsayso.app

watzon avatar Oct 04 '26 16:10 watzon