minutes icon indicating copy to clipboard operation
minutes copied to clipboard

Native-call capture rejected by empty-voice-stem gate when mic stem is quiet (USB speakerphone); audio is valid and fully recoverable

Open jmh1313 opened this issue 5 months ago • 2 comments

Summary

Native-call capture hard-fails with native call capture cannot be transcribed: voice stem missing or empty when the mic (.voice.wav) stem's level is low, even though the stem contains valid, intelligible speech. The system stem is accepted. The check behaves like a signal/RMS gate rather than a presence check: a 100+ MB, full-duration PCM WAV with real speech is reported as "empty." The recording is fully recoverable by mixing the two stems with ffmpeg and running minutes process on the result, so no audio is actually lost. The gate just refuses to proceed.

This reproducibly breaks native-call capture for USB conference speakerphones (e.g. Jabra Speak2 40), whose far-field mic plus internal acoustic-echo-cancellation duck the mic well below the gate.

Environment

  • Minutes app v0.18.5 / CLI v0.18.4 (Homebrew tap)
  • macOS, Apple Silicon
  • Capture device: Jabra Speak2 40 MS (USB speakerphone), set as the macOS default input
  • Native-call capture (ScreenCaptureKit dual-stem)

Evidence

A real ~30-minute meeting captured via the Jabra. Both stems are valid PCM:

  • ffprobe .voice.wav: pcm_f32le, 16 kHz, mono, duration 1785.5 s
  • ffprobe .system.wav: pcm_f32le, 48 kHz, mono, duration 1785.6 s

Signal levels (ffmpeg -af volumedetect):

  • .voice.wav (mic): mean -48.9 dB, peak -7.3 dB. Clearly contains speech (the speaker talked throughout the call).
  • .system.wav (far end): mean -19.9 dB, peak 0.0 dB.

Minutes rejected the capture:

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.

The ~105 MB .voice.wav is not empty; it holds 27+ minutes of audible speech. The threshold does not appear to be exposed in config.toml (only [diarization] / [voice] thresholds are configurable).

Why this happens

Far-field speakerphones sit at table distance and run their own AEC, which attenuates the local mic while the far end is speaking. The resulting mic stem lands quiet (here, ~-49 dB mean across a meeting with normal talk time) but is perfectly intelligible. The empty-stem gate treats "quiet" as "empty" and aborts, discarding a fully recoverable recording.

Impact

Every native call captured through a USB conference speakerphone is unrecoverable in-app, even though the audio is intact. This is a common in-office and hybrid setup.

Suggested fixes (any one would resolve it)

  1. Make the gate tunable via config.toml, e.g. [recording] min_voice_stem_dbfs.
  2. Make it content-aware: if the voice stem decodes to real samples with signal above the noise floor, proceed (optionally apply a normalize/gain pass before transcription).
  3. Degrade gracefully: if one stem is below the gate, transcribe the surviving stem(s) instead of hard-failing. A one-sided transcript beats none, and in this case both sides are actually present.
  4. Clearer error and recovery path: surface the measured stem level, and offer a one-command manual recovery (mix stems with ffmpeg, then minutes process).

Workaround (for anyone else hitting this)

Mix the sibling stems and process the result:

ffmpeg -y -i <job>.voice.wav -i <job>.system.wav \
  -filter_complex "[0:a]aresample=16000,volume=4[v];[1:a]aresample=16000[s];[v][s]amix=inputs=2:duration=longest:normalize=0,alimiter=limit=0.95[m]" \
  -map "[m]" -ac 1 -ar 16000 mixed.wav
minutes process mixed.wav -t meeting -l en

(volume=4 boosts the quiet mic ~12 dB so it balances against the far end.)

Possibly related: #234 (the ~2x source duration note that appears in the same error message), #118 and #216 (other stem-mix / silent-audio failure modes).

jmh1313 avatar Jun 08 '26 20:06 jmh1313

Thank you for the exceptional bug report. The diagnosis, the ffprobe / volumedetect evidence, and the recovery workaround are all spot on, and made this very easy to pin down.

You nailed the root cause. The stem "emptiness" check only probes the first 5 seconds of the mic stem (a 1-second-window RMS gate with a ~-60 dBFS floor) and treats the whole stem as empty if that opening window sits below the floor. A far-field USB speakerphone like the Jabra Speak2, with its own acoustic echo cancellation, opens quiet while the far end speaks first, so the opening window reads as silent even though there is real, intelligible speech throughout, exactly your -48.9 dB mean / -7.3 dB peak case.

Fixing it for v0.18.6: the presence check will scan the whole stem (early-returning as soon as it finds signal above the floor) instead of giving up after 5 seconds, so a quiet open no longer discards a recoverable recording. I will follow up here when it ships. Thanks again for taking the time to write this up so thoroughly.

silverstein avatar Jun 08 '26 20:06 silverstein

Shipped in v0.18.6. The mic-stem presence check now scans the whole stem instead of just the opening seconds, so a USB speakerphone call that starts with the far end speaking is captured correctly instead of being discarded as empty.

Update via brew upgrade minutes (or cargo install minutes-cli), or the desktop app will pull it on next launch. Thanks again for the clear, well-evidenced report, it made this an easy fix.

silverstein avatar Jun 08 '26 22:06 silverstein