Repository navigation
Description
What happens
After updating FluidVoice (most recently to 1.6.1), my selected speech model was silently changed from Parakeet TDT v2 to Whisper Tiny. I didn't notice until transcriptions got bad (Whisper Tiny hallucinates text during silence, e.g. random music or tag-like tokens), then I found the model had been switched and set it back to Parakeet by hand.
I'm fairly sure this also happened on an earlier update (around 1.6.0, about a week ago), though I only have logs for the 1.6.1 occurrence. For a less technical user this is rough: they would just get bad transcriptions after an update with no idea why.
Environment
- FluidVoice 1.6.1 (build 12)
- macOS on Apple Silicon
- Updated via the in-app updater
Evidence (today's 1.6.1 update)
The app log right after the update shows dictations running on whisper-tiny, surviving an app relaunch (so the selection was persisted on disk, not just in memory), then my manual switch back to Parakeet TDT v2 a few minutes later. My persisted SelectedSpeechModel reads parakeet-tdt-v2 again now.
What I ruled out
I went through the source to save you time. None of these is the cause:
- The 1.6.1 model-cache cleanup never writes SelectedSpeechModel, and my Parakeet cache was intact.
- Legacy migration: I have no legacy whisper defaults keys (SelectedTranscriptionProvider / WhisperModelSize), so migration could only return the Parakeet default here, never whisper-tiny.
- Onboarding: whisper-tiny is not an onboarding route candidate for any language (the whisper option there is whisper-small), so even the forced re-onboarding on a generation bump cannot produce it.
- The getter's platform fallback returns whisper-base, not tiny, and is read-only (never persisted).
As far as I can tell, whisper-tiny is unreachable through any automatic path. The only code that writes it is a direct selection: tapping Activate on the Whisper Tiny card, the deleteSpeechModel temp-swap, or a backup restore. None of those run on their own at launch.
Best guess
The only update-specific code is the updater relaunch, which briefly runs two app instances (createsNewApplicationInstance = true, with the old instance terminated about 2 seconds later). During that window two processes share the same UserDefaults domain and the SettingsStore singleton, so a multi-process write could be involved. I could not prove it lands on whisper-tiny specifically, so treat this as a hypothesis, not a conclusion.
The blocker, and an offer
The SelectedSpeechModel setter is not logged, so the actual write is invisible in the logs, and my incident logs have since rotated off disk. I am happy to open a small PR that logs every write to SelectedSpeechModel (old value, new value, app version, and a short call stack) plus the migration's legacy-key reads, so the next time this happens it points straight at the writer. Let me know if you would take that.
Possibly related
While looking into this I noticed deleteSpeechModel temporarily persists the model being deleted as the active selection, then restores the real one through an un-awaited defer { Task { ... } }. If the app quits, crashes, or relaunches for an update in that window, the user is left on a model they did not pick. I have a small fix (route per-model deletes through the existing clearModelCache primitive) plus a regression test ready as a separate PR if useful.
Minor, separate
The forced onboarding reset on a generation bump sends existing users back through setup after an update. Not the cause of this bug, but a rough experience on its own.
Activity