minutes icon indicating copy to clipboard operation
minutes copied to clipboard

Native WASAPI loopback capture on Windows (no VB-CABLE required)

Open sannlin9 opened this issue 6 months ago • 3 comments

Currently, capturing full meeting audio on Windows (both mic + remote participants) requires installing a virtual audio cable like VB-CABLE. Apps like Granola avoid this by using WASAPI loopback directly — recording everything playing through the system output without any extra driver.

cpal (the current capture_backend) supports WASAPI loopback on Windows. It would be great if Minutes could expose this as a built-in option, either automatically when a call is
detected, or via a config option like source = "loopback".

Current workaround: install VB-CABLE and pass --source "CABLE Output (VB-Audio)"
manually.

Expected behavior: minutes record --call (or intent = "call") automatically captures
system audio via WASAPI loopback without requiring a virtual cable.

Platform: Windows 11

sannlin9 avatar May 21 '26 20:05 sannlin9

Thanks, this is exactly the direction I want Windows call capture to go.

Today the Windows workaround is too user-hostile: requiring VB-CABLE just to capture remote meeting audio is not the right long-term product shape. The intended Minutes-native path should be:

  • minutes record --call / desktop call intent chooses a Windows system-audio route automatically when available
  • WASAPI loopback captures the default output device without a virtual cable
  • mic + loopback are preserved as separate sources when possible, so downstream transcript/diarization has the same kind of provenance the macOS native-call path now has
  • config still allows explicit override for unusual setups

I’m going to keep this open as the Windows native loopback tracking issue. If you’re willing to test early builds on Windows 11 once there’s an implementation branch, that would be very helpful.

silverstein avatar May 22 '26 22:05 silverstein

@silverstein is anyone working on this yet? I would like to contribute it, or help test if you already have a branch.

Context: I am porting Margin (my app on minutes-core) to Windows 11. In-person recording works there with core as it is. A call is the gap: core-audio-tap is macOS only, and pocketstation-capture needs a named app, so Margin has Record call turned off on Windows.

What I would propose, matching your list above:

  • Open the default render device as a loopback input with cpal (WASAPI lets an input stream be built on an output device), next to the microphone stream.
  • Keep the two sources as separate stems, the same as the macOS native call path, so "You" and "Them" and diarization work the same way.
  • Follow a change of the default output device during a recording.
  • Keep the explicit device override in config.

I can test on Windows 11 with an NVIDIA laptop (headphones, speakers, Bluetooth). Before I start: do you want this behind a new cargo feature, or inside the existing capture path for cfg(windows)? And is there a part of the capture code you would prefer I do not touch?

askysh avatar Nov 17 '26 08:11 askysh

Nobody is working on it yet, so it's yours if you want it. Thank you, Margin on Windows is a great reason to do it.

Answers:

  • No new cargo feature. cpal is already a dependency and does WASAPI loopback on its own, so this belongs in the existing capture path under cfg(target_os = "windows"). The cleanest shape is a new system-audio backend in crates/core/src/system_audio_backend.rs, next to core-audio-tap and pocketstation. It should be picked automatically for call capture on Windows when there's no explicit override. detect_loopback_device() in capture.rs can then stop treating VB-CABLE as the only route.
  • Please don't change the macOS core-audio-tap and pocketstation paths, or the stem layout and naming. Keeping the stems the same is what lets "You" and "Them" and diarization work unchanged. The capture-reliability invariant tests (consumer isolation and WAV preservation at the stop deadline) also have to keep passing. If you can add Windows coverage for those, even better.
  • Following a change of default output device: yes, please. If it gets large, an earlier PR that doesn't follow device changes is fine, as long as it fails clearly instead of going silent.

Your test set (headphones, speakers, Bluetooth) is exactly what we need, since CI can't hear anything.

silverstein avatar Nov 17 '26 16:11 silverstein