Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

feat(audio): default to CoreAudio Process Tap for system audio on macOS 14.4+

Louis Beaumont75a52603bbef
diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
index b96434836..ce62bf210 100644
--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
@@ -1777,7 +1777,7 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre
/>
)}
- {/* Experimental: CoreAudio System Audio (macOS 14.4+ only) */}
+ {/* CoreAudio System Audio (macOS 14.4+ only; default on) */}
{!settings.disableAudio && coreaudioTapAvailable && (
<Card className="border-border bg-card">
<CardContent className="px-3 py-2.5">
@@ -1786,16 +1786,16 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre
<Monitor className="h-4 w-4 text-muted-foreground shrink-0" />
<div>
<h3 className="text-sm font-medium text-foreground">
- Experimental: CoreAudio System Audio
+ CoreAudio system audio capture
</h3>
<p className="text-xs text-muted-foreground">
- Use the CoreAudio Process Tap API (macOS 14.4+) for System Audio. Avoids ScreenCaptureKit — lighter permission, no GPU wake, survives sleep/wake. Restart recording after changing.
+ Captures system audio via the CoreAudio Process Tap API (macOS 14.4+). Survives sleep/wake, lighter permission, and captures output routed to Bluetooth headsets (AirPods) that ScreenCaptureKit can't see. Falls back to ScreenCaptureKit automatically if unavailable. Restart recording after changing.
</p>
</div>
</div>
<Switch
id="experimentalCoreaudioSystemAudio"
- checked={Boolean(settings.experimentalCoreaudioSystemAudio ?? false)}
+ checked={Boolean(settings.experimentalCoreaudioSystemAudio ?? true)}
onCheckedChange={(checked) => handleSettingsChange({ experimentalCoreaudioSystemAudio: checked }, true)}
/>
</div>
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 048591a72..2840df2c2 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -379,7 +379,7 @@ let DEFAULT_SETTINGS: Settings = {
filterMusic: false,
ignoreIncognitoWindows: true,
pauseOnDrmContent: false,
- experimentalCoreaudioSystemAudio: false,
+ experimentalCoreaudioSystemAudio: true,
recordWhileLocked: false,
appendTypedTextToMeetingNotes: true,
localRetentionEnabled: true,
@@ -462,6 +462,19 @@ function createSettingsStore() {
needsUpdate = true;
}
+ // One-time migration: the CoreAudio Process Tap toggle used to default
+ // off (opt-in experimental flag). Existing installs therefore have
+ // `experimentalCoreaudioSystemAudio: false` persisted explicitly, which
+ // means just changing the static default doesn't reach them. Flip
+ // once, then record a marker so explicit opt-outs after this point
+ // are respected. Safe because stream.rs falls back to SCK if the tap
+ // can't start — see Ruark Ferreira's AirPods/HFP case (2026-04-24).
+ if (!(settings as any).coreaudioTapMigrationV1) {
+ settings.experimentalCoreaudioSystemAudio = true;
+ (settings as any).coreaudioTapMigrationV1 = true;
+ needsUpdate = true;
+ }
+
// Migration: Add default presets if user has none
if (!settings.aiPresets || settings.aiPresets.length === 0) {
const isPro = settings.user?.cloud_subscribed === true;
diff --git a/crates/screenpipe-config/src/recording.rs b/crates/screenpipe-config/src/recording.rs
index c88afe8f7..9bf14f8a5 100644
--- a/crates/screenpipe-config/src/recording.rs
+++ b/crates/screenpipe-config/src/recording.rs
@@ -72,10 +72,20 @@ pub struct RecordingSettings {
/// Experimental: capture System Audio via the CoreAudio Process Tap API
/// (macOS 14.4+) instead of ScreenCaptureKit. Avoids SCK's display
- /// enumeration failures after sleep/wake and the GPU/compositor wake
- /// overhead. Off by default — existing users keep the SCK path.
- /// Ignored on macOS <14.4 and on non-macOS platforms.
- #[serde(rename = "experimentalCoreaudioSystemAudio", default)]
+ /// enumeration failures after sleep/wake, the GPU/compositor wake
+ /// overhead, and — most importantly — captures audio that's been
+ /// routed to a Bluetooth headset via HFP (which SCK can't see; see
+ /// Ruark Ferreira's 2026-04-24 Zoom call where AirPods-as-input
+ /// silently routed output away from the SCK-visible mixer).
+ ///
+ /// Default `true`: if tap creation fails for any reason (permission,
+ /// macOS <14.4, OS quirk), stream.rs falls back to the SCK path
+ /// automatically — so flipping the default on can't regress anyone.
+ /// Ignored on non-macOS platforms.
+ #[serde(
+ rename = "experimentalCoreaudioSystemAudio",
+ default = "default_experimental_coreaudio_system_audio"
+ )]
pub experimental_coreaudio_system_audio: bool,
/// Duration of each audio chunk in seconds before transcription.
@@ -372,6 +382,12 @@ fn default_true() -> bool {
true
}
+/// Default `true` — stream.rs has an automatic fallback to SCK if the
+/// Process Tap can't start, so this is safe on every platform.
+fn default_experimental_coreaudio_system_audio() -> bool {
+ true
+}
+
fn default_max_snapshot_width() -> u32 {
1920
}