Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix: trigger native system audio consent dialog on macOS 15+
Gabriel Steinc13ac07156a7
diff --git a/electron-builder.json b/electron-builder.jsonindex e743b9309..fa11438bd 100644--- a/electron-builder.json+++ b/electron-builder.json@@ -125,7 +125,7 @@"extendInfo": {"LSUIElement": false,"NSMicrophoneUsageDescription": "OpenWhispr uses the microphone to capture your voice for transcription.",- "NSAudioCaptureUsageDescription": "OpenWhispr uses system audio to capture other participants' audio from calls and meetings. Your screen is never recorded.",+ "NSScreenCaptureUsageDescription": "OpenWhispr uses system audio to capture other participants' audio from calls and meetings. Your screen is never recorded.","NSAccessibilityUsageDescription": "OpenWhispr needs accessibility permissions to paste transcribed text into other applications."}},diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.jsindex 100f98ffc..8986e024e 100644--- a/src/helpers/ipcHandlers.js+++ b/src/helpers/ipcHandlers.js@@ -2066,12 +2066,14 @@ class IPCHandlers {return { granted: true, status: "granted", mode: "unsupported" };}- if (this.audioTapManager?.isSupported()) {- const status = systemPreferences.getMediaAccessStatus("screen");- return { granted: status === "granted", status, mode: "native" };+ if (!this.audioTapManager?.isSupported()) {+ return { granted: false, status: "unsupported", mode: "unsupported" };}- return { granted: false, status: "unsupported", mode: "unsupported" };+ const screenStatus = systemPreferences.getMediaAccessStatus("screen");+ const tapStatus = this.audioTapManager.getPermissionStatus();+ const granted = screenStatus === "granted" || tapStatus === "granted";+ return { granted, status: granted ? "granted" : screenStatus, mode: "native" };});ipcMain.handle("request-system-audio-access", async () => {@@ -2083,16 +2085,24 @@ class IPCHandlers {return { granted: false, status: "unsupported", mode: "unsupported" };}- const status = systemPreferences.getMediaAccessStatus("screen");- if (status === "granted") {+ const screenStatus = systemPreferences.getMediaAccessStatus("screen");+ if (screenStatus === "granted") {return { granted: true, status: "granted", mode: "native" };}- // Permission not yet granted — open System Settings so the user can toggle it manually.- // Unlike microphone, macOS does not show a system prompt for screen/audio recording;- // the user must enable it in System Settings.+ // Probe the binary — triggers ScreenCaptureKit's native consent dialog on macOS 15++ try {+ const result = await this.audioTapManager.requestAccess();+ if (result.granted) {+ return { granted: true, status: "granted", mode: "native" };+ }+ } catch {+ // Falls through to opening System Settings+ }++ // Fallback for older macOS or if the native prompt was deniedawait openSystemSettings("systemAudio");- return { granted: false, status, mode: "native" };+ return { granted: false, status: screenStatus, mode: "native" };});// Auth: clear all session cookies for sign-out.