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: meeting transcription Bluetooth and rendering issues
Gabriel Steinf16db07b0f2a
diff --git a/src/components/notes/NoteEditor.tsx b/src/components/notes/NoteEditor.tsxindex ba67cef5f..463996bda 100644--- a/src/components/notes/NoteEditor.tsx+++ b/src/components/notes/NoteEditor.tsx@@ -429,7 +429,9 @@ export default function NoteEditor({useEffect(() => {if (note.id !== prevNoteIdRef.current) {prevNoteIdRef.current = note.id;- setViewMode("raw");+ if (!isMeetingRecording) {+ setViewMode("raw");+ }if (titleRef.current && titleRef.current.textContent !== note.title) {titleRef.current.textContent = note.title || "";}@@ -442,7 +444,7 @@ export default function NoteEditor({pendingSelectionRestoreRef.current = null;beforeInputSelectionRef.current = null;}- }, [note.id, syncSelectionRefs]);+ }, [note.id, isMeetingRecording, syncSelectionRefs]);useEffect(() => {if (titleRef.current && titleRef.current.textContent !== note.title) {diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.jsindex 30e95b9d5..7d8bd91fa 100644--- a/src/helpers/ipcHandlers.js+++ b/src/helpers/ipcHandlers.js@@ -2341,7 +2341,15 @@ class IPCHandlers {const attachMeetingStreamingHandlers = (streaming, win, source) => {const send = (channel, data) => {- if (win && !win.isDestroyed()) win.webContents.send(channel, data);+ if (!win || win.isDestroyed()) {+ debugLogger.error("Meeting segment send failed: window unavailable", {+ channel,+ source,+ winExists: !!win,+ });+ return;+ }+ win.webContents.send(channel, data);};streaming.onPartialTranscript = (text) => {@@ -2350,6 +2358,11 @@ class IPCHandlers {streaming.onFinalTranscript = (text) => {const segments = streaming.completedSegments;const latestSegment = segments.length > 0 ? segments[segments.length - 1] : text;+ debugLogger.debug("Meeting segment sending to renderer", {+ source,+ text: latestSegment.slice(0, 80),+ segmentCount: segments.length,+ });send("meeting-transcription-segment", { text: latestSegment, source, type: "final" });};streaming.onError = (error) => {diff --git a/src/hooks/useMeetingTranscription.ts b/src/hooks/useMeetingTranscription.tsindex 6bd753002..bc01a3f2e 100644--- a/src/hooks/useMeetingTranscription.ts+++ b/src/hooks/useMeetingTranscription.ts@@ -412,6 +412,15 @@ export function useMeetingTranscription(): UseMeetingTranscriptionReturn {const segmentCleanup = window.electronAPI?.onMeetingTranscriptionSegment?.((data: { text: string; source: "mic" | "system"; type: "partial" | "final" }) => {+ logger.debug(+ "Meeting segment received in renderer",+ {+ source: data.source,+ type: data.type,+ text: data.text?.slice(0, 80),+ },+ "meeting"+ );const setPartialForSource = partialSetters[data.source];if (data.type === "partial") {diff --git a/src/utils/audioDeviceUtils.ts b/src/utils/audioDeviceUtils.tsindex 4dc5133b9..f32538d8f 100644--- a/src/utils/audioDeviceUtils.ts+++ b/src/utils/audioDeviceUtils.ts@@ -30,6 +30,8 @@ export function isBuiltInMicrophone(label: string): boolean {"external","headset","webcam",+ "iphone",+ "ipad",];return !externalIndicators.some((indicator) => lowerLabel.includes(indicator));}diff --git a/src/utils/systemAudio.ts b/src/utils/systemAudio.tsindex 8d9387081..51a728892 100644--- a/src/utils/systemAudio.ts+++ b/src/utils/systemAudio.ts@@ -9,13 +9,33 @@ export async function getSystemAudioStream(): Promise<MediaStream | null> {try {// Use getDisplayMedia (handled by setDisplayMediaRequestHandler in main process)// which properly captures system audio via macOS ScreenCaptureKit loopback.+ // Disable all audio processing — echo cancellation and noise suppression+ // on loopback audio can cancel out the captured system audio entirely,+ // especially when Bluetooth headphones change the audio routing.const stream = await navigator.mediaDevices.getDisplayMedia({- audio: true,+ audio: {+ echoCancellation: false,+ noiseSuppression: false,+ autoGainControl: false,+ },video: true,});const audioTracks = stream.getAudioTracks();const videoTracks = stream.getVideoTracks();++ // Belt-and-suspenders: also apply constraints directly on the track+ // in case getDisplayMedia ignored the initial constraints.+ if (audioTracks[0]) {+ try {+ await audioTracks[0].applyConstraints({+ echoCancellation: false,+ noiseSuppression: false,+ autoGainControl: false,+ });+ } catch {}+ }+logger.debug("Display media stream obtained",{