minutes icon indicating copy to clipboard operation
minutes copied to clipboard

Transcription cut off after under a minute

Open bartmichalak opened this issue 8 months ago • 6 comments

This was the second time I tested the app today, and one of the transcripts looked like this:

Image

'Śmiech' translates to 'laughter' in English - the meeting was in Polish.

I was using AirPods, and I think they were connected from the very beginning of the meeting, when the recording was still working fine.

Is there any way to check a debug log or something?

bartmichalak avatar Mar 30 '26 16:03 bartmichalak

Thanks for reporting — this looks like the audio stream from your AirPods dropped or switched mid-recording, causing the WAV file to be truncated.

Common causes:

  • Bluetooth codec switch — AirPods can switch between AAC (high quality, input-only) and SCO (low quality, bidirectional) when a mic is needed. This can cause cpal's input stream to error and stop early.
  • AirPods auto-switching — if you have multiple Apple devices, AirPods may silently switch to your phone/iPad mid-meeting, disconnecting the audio input from your Mac.
  • System audio routing change — joining a video call app (Zoom, Meet, Teams) can steal the audio device from minutes.

The "[Śmiech]" (laughter) line is whisper interpreting background noise/laughter — that part is expected behavior for non-speech audio.

To debug, check the structured log:

cat ~/.minutes/logs/minutes.log | tail -20

This will show the pipeline steps and any errors. You can also run with verbose output:

RUST_LOG=debug minutes record

That will print real-time audio capture info to stderr so you can see exactly when/if the stream drops.

If this happens consistently with AirPods, try recording with the built-in mic as a comparison — that would confirm whether it's a Bluetooth audio issue.

silverstein avatar Mar 30 '26 16:03 silverstein

This is what I have in the logs related to this specific meeting:

{
  "duration_ms": 418189,
  "extra": {
    "words": 444
  },
  "file": "/Users/bart/.minutes/current.wav",
  "level": "info",
  "step": "transcribe",
  "ts": "2026-03-30T17:23:54.641758+02:00"
}
{
  "duration_ms": 1,
  "extra": {
    "output": "/Users/bart/meetings/2026-03-30-cześć.md",
    "words": 444
  },
  "file": "/Users/bart/.minutes/current.wav",
  "level": "info",
  "step": "write",
  "ts": "2026-03-30T17:23:54.779606+02:00"
}
{
  "duration_ms": 418335,
  "extra": {
    "content_type": "Meeting",
    "output": "/Users/bart/meetings/2026-03-30-cześć.md",
    "words": 444
  },
  "file": "/Users/bart/.minutes/current.wav",
  "level": "info",
  "step": "pipeline_complete",
  "ts": "2026-03-30T17:23:54.780366+02:00"
}

The interesting thing is that it shows 444 words, while in the transcript I got only 12 words, for the very beginning of the meeting before the cut.

I'll be testing it out over the next few days - in most of my meetings I use AirPods, so I'll be able to provide some more feedback.

bartmichalak avatar Mar 30 '26 20:03 bartmichalak

Thanks for the logs — this narrows it down.

The log says 444 words at both transcribe and write steps, meaning 444 words were genuinely written to the file. The "12 words" you're seeing is likely the real meeting content at the beginning — the rest of the file is probably filled with whisper hallucination artifacts.

What's happening: When AirPods audio degrades mid-recording (Bluetooth codec switch, auto-switching to another device), whisper doesn't get silence — it gets low-quality noise that it tries to transcribe. In Polish, this often produces repetitive markers like [Śmiech], [muzyka], [cisza], or garbled repetitive text. Our anti-hallucination filters catch exact repetitions but miss slight variations.

Can you check? Open the full .md file in a text editor and scroll past the first 12 words. If there are hundreds of lines of repetitive or nonsensical text (bracketed markers, repeated phrases), that confirms this diagnosis. If the file genuinely ends after 12 words, that's a different bug and I'd want to see the full file content.

Either way, two things we should improve:

  1. Better hallucination filtering for non-English repetitive markers (whisper-guard enhancement)
  2. The silence detection feature from #35 — if audio quality drops, a notification could prompt you to check the recording

If you can paste or DM the tail end of the transcript (last ~20 lines), that would help us tune the filters for Polish-language hallucination patterns.

silverstein avatar Mar 30 '26 20:03 silverstein

Update: we shipped a fix for this in 705436b — a new language-agnostic noise marker filter in whisper-guard.

It catches bracketed non-speech markers that whisper produces in any language ([Śmiech], [muzyka], [cisza], etc.) and collapses them. Two passes:

  1. Consecutive runs of 3+ markers → collapsed to one + count
  2. If ≥66% of lines are still noise markers → stripped entirely

We also shipped silence detection notifications (#35) — if your AirPods disconnect and the mic goes silent, you'll now get a macOS notification after 5 minutes.

Still interested in seeing the full file content when you get a chance — it'll help confirm whether the 444-word / 12-word gap was hallucinated markers or something else.

silverstein avatar Mar 30 '26 22:03 silverstein

Hey @bartmichalak, checking in on this. You mentioned you'd test over the next few days -- did the issue recur?

Since your last message, a few relevant things shipped:

  • Language-agnostic noise marker filtering in whisper-guard ([Smiech], [muzyka], [cisza] etc. are now collapsed/stripped)
  • Silence detection notifications (5 min of silence triggers a macOS alert)
  • Foreign-script hallucination detection

If you're still on an older version, upgrading should help with the hallucination artifacts. The AirPods disconnection itself is harder to prevent from our side, but the silence notification should at least warn you when it happens.

Still curious about the 444-word vs 12-word gap. If you get a chance to check the full .md file contents (or reproduce the issue on the latest build), that would help us confirm whether the fix is working for Polish-language recordings.

silverstein avatar Apr 04 '26 21:04 silverstein

Closing this out, but if it's still an issue, let me know!

silverstein avatar Apr 11 '26 03:04 silverstein