minutes icon indicating copy to clipboard operation
minutes copied to clipboard

Native call capture records the macOS default input (ignores `[recording].device`) → silent mic stem in clamshell; empty-stem gate then discards the recoverable system side

Open gdiab opened this issue 4 months ago • 2 comments

Summary

On a docked-clamshell Mac, native call capture (ScreenCaptureKit / SCRecordingOutput) recorded a 74-minute Zoom call with a completely silent mic stem (.voice.wav = digital silence, -91 dB across the whole file), even though [recording].device was explicitly set to a working external mic. The far end (.system.wav) was captured perfectly. Minutes then hard-failed the entire job as voice stem missing or empty … recording is unrecoverable without the mic side, discarding ~74 min of intact, intelligible other-side audio.

The recording was not unrecoverable: minutes process <job>.system.wav -t meeting produced a clean 8,329-word transcript. So there are two distinct defects here — one causes the silent mic, the other throws away everything because of it.

This reproduced on the latest desktop app (v0.21.0).

Environment

  • Minutes desktop app v0.21.0 (latest; the app that produced the failed capture)
  • Minutes CLI v0.19.0 (used for the manual recovery)
  • macOS, Apple Silicon
  • Clamshell / docked: lid closed, driving an Apple Studio Display
  • Input devices present: Studio Display Microphone, MacBook Pro Microphone (built-in), 16pro Microphone (iPhone Continuity), ZoomAudioDevice
  • Config: [recording] device = "Studio Display Microphone"
  • Call app: Zoom (detected; native dual-stem capture auto-started)

Evidence

Job job-20260714121755858-7678-2. Both stems full-duration PCM:

  • .voice.wav (mic): pcm_f32le, 48 kHz, mono, 4471.1 s, volumedetect → mean -91.0 dB, max -91.0 dB (mean == max == constant null = pure digital silence, no signal ever captured)
  • .system.wav (far end): pcm_f32le, 48 kHz, mono, 4476.4 s, mean -38.6 dB, max -13.2 dB (valid speech)
  • .mov audio track is identical to the system stem (no mic content)

Job manifest (jobs/archive/<job>.json):

"state": "failed",
"error": "native call capture cannot be transcribed: voice stem missing or empty for <job>.mov (system stem present at <job>.system.wav). Cannot mix to PCM; recording is unrecoverable without the mic side. …"

Recovery that proves the audio was fine:

minutes process <job>.system.wav -t meeting --title "…"
# → transcription complete, 8329 words, 472 segments; full summary generated

Live device probing after the fact (mic hardware is fine — the wrong device was used):

  • Studio Display Microphone (the configured device) delivers audio: ~-37 dB while speaking
  • MacBook Pro Microphone in clamshell: capture returns an empty ~78-byte file / hangs (lid closed → built-in mic disabled)
  • system_profiler SPAudioDataType reported MacBook Pro Microphone: Default Input Device: Yes — i.e. the macOS default input had drifted to the built-in mic
  • The default input was observed flipping on its own between checks (drifts across undock/redock/reboot)

Crucially, Zoom heard the user fine the whole call — because Zoom used its own (working) input selection. Only Minutes recorded silence.

Root cause

Defect A — native call capture uses the macOS default input device, not [recording].device. The ScreenCaptureKit mic tap is driven off the system default input (consistent with the default-input-centric mic gate in #330). In a docked-clamshell setup the default is routinely the built-in mic, which is physically disabled with the lid closed, and it drifts back there on its own after undock/redock/reboot. The user’s explicit [recording] device = "Studio Display Microphone" is silently ignored by this path (that key governs the CLI/cpal route only — see #285). Result: a silent mic stem with no warning. There is currently no runtime dead-stem detection to catch it mid-recording (L1/L2 were explicitly deferred in #336).

Defect B — a truly-silent mic stem discards the recoverable system stem. The empty-voice-stem gate hard-fails the whole job when the mic stem is silent, throwing away a fully-intact far-end recording. #281 fixed the quiet-mic false positive (scan the whole stem), but a genuinely silent mic still nukes the recoverable other side. A one-sided transcript beats losing 74 minutes entirely — and #280’s own suggested fix #3 (degrade gracefully → transcribe the surviving stem) covers exactly this.

Suggested fixes

Defect A

  1. In native call capture, honor [recording].device — set ScreenCaptureKit’s microphone capture device explicitly rather than relying on kAudioHardwarePropertyDefaultInputDevice. At minimum, if a device is configured and available, prefer it over the system default.
  2. Add L2 runtime dead-stem detection (the deferred follow-up to #336): if the mic stem is flat silence N seconds into a call, warn/label the recording instead of discovering it post-hoc.

Defect B 3. When the mic stem is empty/silent but the system stem is valid, degrade gracefully: transcribe the surviving stem and label the meeting “other-side only,” rather than hard-failing. Always preserve the raw stems. 4. Surface a one-command recovery in the failure notice (minutes process <job>.system.wav).

Impact

Docked-clamshell + external display + Zoom is an extremely common setup. In it, native call capture can silently record a dead mic and then delete the recoverable half of the meeting, with no in-app warning — the user finds out only when the meeting is gone. Both halves of the failure are present on v0.21.0.

Related

#280 / #281 (empty-voice-stem gate, quiet-mic case), #286 (silent mic-only fallback on detection miss), #330 (default-input-centric mic gate), #336 (pre-flight mic-permission gate; L1/L2 dead-stem detection deferred), #285 (docs: native capture vs [recording].device).


Could reasonably be split into two issues (A: device selection; B: graceful degradation) if you prefer — they compounded into one lost meeting here.

gdiab avatar Jul 14 '26 22:07 gdiab

Thank you — this is an exemplary report, and your diagnosis is exactly right on both counts. Confirming as two distinct defects:

1. Native call capture ignores [recording].device. The ScreenCaptureKit/SCRecordingOutput path records the macOS default input rather than the configured device. In clamshell the default drifted to the lid-disabled built-in mic (your system_profiler evidence shows precisely that), so the voice stem was digital silence from the first sample. The cpal-based (non-call) recording path honors [recording].device; the native call path must too.

2. The empty-stem gate discards recoverable audio. Hard-failing the job with "unrecoverable" while a full, intelligible system stem sits on disk is wrong — your minutes process <job>.system.wav recovery (8,329 words!) proves it. This violates our own honest-degradation principle (recordings are sacred; degrade honestly, never discard recoverable data). The gate should demote to a degraded single-stem transcription of the system side, with an explicit banner that the mic side was silent + why-probable (device/permission), never a discard.

Both are on the fix list — #2 first (it's the data-loss one; #1 is the root cause but #2 is what turned a bug into a loss). Until the fix ships, your workaround stands: reprocess the .system.wav manually, and pinning the macOS default input to the working mic (System Settings → Sound → Input) prevents the silent stem in clamshell.

Also noting your reporting quality — full-duration stems, volumedetect stats, the drifting-default observation, and a self-recovery that proves recoverability. This is the report that makes the fix a day instead of a week.

silverstein avatar Jul 15 '26 05:07 silverstein

Fixed in #467, now on main. Both defects you identified are addressed:

  1. [recording].device is now honored by native call capture. The configured device name flows through to ScreenCaptureKit's microphone selection (exact localizedName match). If the configured device isn't available at capture start you get an explicit "using default" notice instead of silence, and a mid-call disconnect is recorded rather than crashing the capture.
  2. Recoverable audio is never discarded. The pre-queue check and the core pipeline now share one signal-aware classifier, so a full-duration digitally-silent stem (your -91 dB case) is detected as silent, and the surviving stem is transcribed as a single-source meeting with an honest recording_health warning in the frontmatter and desktop notice — instead of the whole job hard-failing. The original capture files are preserved for reprocessing either way.

Your report made this a fast fix — the diagnosis was exact on both counts, including the manual minutes process <job>.system.wav recovery, which remains the workaround on current releases. The fix ships in the next release; if you build from main in the meantime, your clamshell + Studio Display setup is exactly the real-world E2E we couldn't reproduce on our headless hardware, so a confirmation either way would be valuable.

Thanks again for the quality of the report.

silverstein avatar Jul 15 '26 08:07 silverstein