[Bug]: Adding vocabulary words silently breaks WhisperKit transcription (empty results) — pinned WhisperKit 0.15.0 promptTokens bug, fixed upstream in v1.1.0
System Information
Pindrop 1.22.5 (build 26), macOS 26.x, Apple Silicon (M4 Pro) Model: openai_whisper-large-v3-v20240930 (WhisperKit backend) WhisperKit pinned at 0.15.0 per Package.resolved
What happened?
With any WhisperKit model selected, adding words to the vocabulary makes every dictation come back empty ("No speech detected"), regardless of what was said. Clearing the vocabulary immediately restores transcription. Users who add dictionary terms get a fully broken app with nothing pointing at the cause.
Verified offline with a minimal WhisperKit CLI on 18 real recordings (1.7s–78s): with promptTokens set (what VocabularyBiasPrompt produces), 18/18 transcriptions are empty; without promptTokens all transcribe fine.
Root cause: an upstream WhisperKit 0.15.0 bug, since fixed — with promptTokens set, an <|endoftext|> predicted while the prompt is still being force-fed terminates the decode loop before any real token is sampled (TextDecoder's segment-completion check has no isPrefill guard in 0.15.0). See argmaxinc/argmax-oss-swift#372, fixed by PR #514, released in v1.1.0 (the WhisperKit repo is now named argmax-oss-swift). Suggested fix: bump the dependency to argmax-oss-swift >= 1.1.0.
Two related notes from the same investigation: (1) even on current upstream main, TimestampRulesFilter is silently disabled whenever promptTokens are set (sampleBegin only scans tokens.prefix(3)), so prompted clips longer than one 30s window can lose whole spans — worth gating vocabulary bias to <=30s clips until fixed. (2) The ~40-word vocabulary cap encodes to ~399 tokens for CJK words, over Whisper's 224-token prompt budget; a token-based cap would be safer.
Happy to provide the offline repro CLI or decoder traces.
Expected Behavior
Adding vocabulary words should bias recognition toward those terms while transcription keeps working. If the bias prompt can't be applied safely, the transcript should still be returned rather than coming back empty.
Steps to Reproduce
- Select any WhisperKit model (e.g. openai_whisper-large-v3-v20240930)
- Settings -> Dictionary -> add any vocabulary word (a single ASCII word is enough)
- Dictate anything
- Result is empty; the app shows "No speech detected". Remove the word and dictation works again.
Log File Attachment
Not attaching a log: this failure leaves no error trace in it. The app logs a normal "Transcription completed in X.XXs" line followed by "No speech detected", because WhisperKit returns an empty string instead of throwing. The offline CLI reproduction described above isolates the bug deterministically without app logs.
Permissions
- [x] Microphone access
- [x] Accessibility access
Fixed in 1.23.0. WhisperKit is updated to 1.1.0, which contains the upstream decoder fix. Pindrop also caps the vocabulary prompt at whole words within the token budget, and does not use the prompt for clips longer than 30 seconds.
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