minutes icon indicating copy to clipboard operation
minutes copied to clipboard

Mute my mic: local toggle to drop mic audio while keeping system audio

Open silverstein opened this issue 7 months ago • 1 comments

Summary

Add a "Mute my mic (recording only)" toggle that drops microphone frames from the recording pipeline while continuing to capture system audio. This is a Minutes-local mute, not a meeting-app mute.

Requested by @maxtacu in #146.

Use cases

  • Passive attendance (webinars, all-hands, panels, investor calls) where the user doesn't contribute
  • Shared physical spaces (coworking, coffee shops) where you want to record the meeting but not your side of the room
  • Keeps side conversations, typing, and breathing out of the transcript and diarization

Why this fits cleanly

Minutes already captures mic and system audio as separate sources inside MultiAudioStream before mixing. The toggle is a per-source gate, not an architecture change.

Acceptance criteria

  • [ ] Tray menu toggle labeled "Mute my mic (recording only)" with clear state indication (checkmark when muted)
  • [ ] Optional global hotkey to toggle during an active recording
  • [ ] State is reset at the start of each new recording (not sticky across sessions) to prevent "why is my mic dead" confusion
  • [ ] System audio capture continues unaffected while mic is muted
  • [ ] CLI flag minutes record --mute-mic for parity with the desktop toggle
  • [ ] Event logged to events.jsonl when toggled, for agent reactivity
  • [ ] Label explicitly says this is a Minutes-only mute, not the meeting app's mute

Non-goals

  • Syncing with Zoom/Teams/Meet mute state (out of scope, not possible without app integration)
  • Auto-detecting passive meetings and suggesting mute
  • Persisting mute state across recordings (explicitly opt-in per session)

Implementation sketch

  1. Add mic_muted: Arc<AtomicBool> to MultiAudioStream
  2. In the mic callback, if mic_muted.load(), write zeros to the ring buffer instead of incoming samples (preserves timing, no resampling glitches)
  3. Tauri command cmd_toggle_mic_mute flips the flag and updates tray menu state
  4. Global hotkey path reuses the same command via hotkey_macos
  5. CLI --mute-mic sets the flag at record start
  6. Emit MicMuted/MicUnmuted events to events.jsonl

Risk / edge cases

  • Diarization must not spuriously create "silence" speaker clusters during mute periods (VAD should handle this, but worth a targeted test)
  • If mic is the only source (no system audio detected), toggling mute would produce silent output. Should probably warn or no-op in that case.

silverstein avatar Apr 18 '26 14:04 silverstein

Shipped in v0.13.2: https://github.com/silverstein/minutes/releases/tag/v0.13.2

silverstein avatar Apr 18 '26 17:04 silverstein