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
Merge remote-tracking branch 'origin/main' into fix/meeting-speaker-identity
Gabriel Stein58b6fd5efa26
diff --cc src/helpers/ipcHandlers.jsindex 4adcf12e4,99e2004e1..9e8521498--- a/src/helpers/ipcHandlers.js+++ b/src/helpers/ipcHandlers.js@@@ -82,7 -72,19 +72,8 @@@ const// Meeting capture runs at 24 kHz (see meetingRecordingStore AudioContext); cloud// streaming providers must be told the true PCM rate or they misread the audio.const MEETING_STREAM_SAMPLE_RATE = 24000;+ const MEETING_RECONNECT_BUFFER_MAX_BYTES = MEETING_STREAM_SAMPLE_RATE * 2 * 30;-function parseAttendees(raw) {- if (!raw) return [];- if (Array.isArray(raw)) return raw;- try {- const parsed = JSON.parse(raw);- return Array.isArray(parsed) ? parsed : [];- } catch {- return [];- }-}-const MISTRAL_TRANSCRIPTION_URL = "https://api.mistral.ai/v1/audio/transcriptions";const XAI_STT_URL = "https://api.x.ai/v1/stt";diff --cc src/stores/meetingRecordingStore.tsindex d638c350c,ef68d67b4..59a0c1247--- a/src/stores/meetingRecordingStore.ts+++ b/src/stores/meetingRecordingStore.ts@@@ -1115,16 -1035,17 +1085,27 @@@ export async function startRecording(ar});if (errorCleanup) ipcCleanups.push(errorCleanup);+ const fatalErrorCleanup = window.electronAPI?.onMeetingTranscriptionFatalError?.((err) => {+ reportMeetingError(err);+ logger.error(+ "Meeting transcription stopped after connection loss",+ { error: err },+ "meeting"+ );+ if (isRecordingFlag) void stopRecording();+ });+ if (fatalErrorCleanup) ipcCleanups.push(fatalErrorCleanup);++ // Main re-derives the expected count when participants are added mid-meeting+ // (never for a count set explicitly via the stepper — main skips those).+ const speakerConfigCleanup = window.electronAPI?.onMeetingSessionSpeakerConfigUpdated?.(+ (config) => {+ const clamped = Math.max(1, Math.min(MAX_SPEAKER_COUNT, config.expectedCount));+ useMeetingRecordingStore.setState({ sessionExpectedCount: clamped });+ }+ );+ if (speakerConfigCleanup) ipcCleanups.push(speakerConfigCleanup);+if (startResult.oneOnOneAttendee) {const synthetic: SpeakerIdentification = {speakerId: "speaker_0",diff --cc src/types/electron.tsindex bb6bb5f71,6369a3c28..5dd0eea35--- a/src/types/electron.ts+++ b/src/types/electron.ts@@@ -2210,10 -2213,8 +2213,11 @@@ declare global}>) => void) => () => void;+ onMeetingSessionSpeakerConfigUpdated?: (+ callback: (config: { enabled: boolean; expectedCount: number }) => void+ ) => () => void;onMeetingTranscriptionError?: (callback: (error: string) => void) => () => void;+ onMeetingTranscriptionFatalError?: (callback: (error: string) => void) => () => void;// Speaker diarizationdownloadDiarizationModels?: () => Promise<{ success: boolean; error?: string }>;