[🐞 BUG] Short utterances (<1s) are silently dropped by transcription guard
Describe the bug
Any recording shorter than 1 second of audio is silently discarded before transcription even runs. Short single-word utterances like "yes", "no", "stop", "undo", "next" never make it into the transcript and appear to the user as if nothing happened — there's no error, no toast, no history entry, just silence.
The guard lives in Sources/Fluid/Services/ASRService.swift around line 933:
// Avoid whisper.cpp assertions by skipping too-short audio buffers
let minSamples = 16_000
guard pcm.count >= minSamples else {
DebugLogger.shared.debug(
"stop(): insufficient audio for transcription (\(pcm.count)/\(minSamples) samples)",
source: "ASRService"
)
...
return ""
}
The comment scopes the workaround to whisper.cpp, but the guard runs unconditionally inside stop() — so even users on Parakeet Flash / v3 / v2, Cohere Transcribe, or Apple Speech (none of which have this assertion issue) lose their sub-1s utterances too.
To Reproduce
- Set the speech model to anything non-Whisper (e.g. Parakeet TDT v3 or Apple Speech).
- Press the hotkey and immediately say a short word ("yes") for well under a second.
- Release the hotkey.
- Observe: nothing is typed, nothing appears in history, no error is shown.
Expected behavior
Short utterances should transcribe normally on providers that can handle them. At minimum:
- Only apply the 1s guard when the active provider actually requires it (whisper.cpp).
- For providers that do require a minimum, give the user some feedback rather than failing silently — a toast, a subtle overlay flash, or an entry in history flagged as "too short". Silent drops are the worst-case UX because the user can't tell whether the hotkey, the mic, or the transcription failed.
Ideally the minimum would also be user-configurable (or at least lower — 300-500 ms covers most single-word commands without tripping whisper.cpp assertions on buffers that are genuinely empty).
This matters a lot for Command Mode, where short affirmations / corrections / single-word commands are a common and natural input pattern.
Environment:
- macOS Version: 26.3.1 (arm64)
- App Version: 1.5.12
- Architecture: Apple Silicon
Additional context
Found while using Command Mode — short confirmations kept being ignored with no feedback. Tracked it down to this guard.
@domdomegg thanks for flagging this. I tried to patch it but looks like even the inference backend I use has the same cap at 16000.
https://github.com/altic-dev/FluidAudio/blob/f3dba78a23cb706d01c889bd54f7efd26871e82e/Sources/FluidAudio/ASR/Parakeet/AsrTranscription.swift#L11
I'll need to check on verifying what's a good lower limit than 16K, perhaps 8K or so before patching this.
Could a hack be to pad out the recording with silence or something? Might take a look later.