Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(sync): push transcriptions on save instead of waiting for launch

Gabriel Steina06b76c2f9cf
diff --git a/src/helpers/audioManager.js b/src/helpers/audioManager.js
index 66e1e7502..d14ad0474 100644
--- a/src/helpers/audioManager.js
+++ b/src/helpers/audioManager.js
@@ -15,6 +15,7 @@ import {
getEffectiveReasoningModel,
isCloudReasoningMode,
} from "../stores/settingsStore";
+import { syncService } from "../services/SyncService.js";
const REASONING_CACHE_TTL = 30000; // 30 seconds
const REALTIME_MODELS = new Set(["gpt-4o-mini-transcribe", "gpt-4o-transcribe"]);
@@ -1868,6 +1869,7 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);
try {
const result = await window.electronAPI.saveTranscription(text, rawText);
+ if (result?.id) syncService.debouncedPush("transcription", result.id);
// Save audio if we have a captured blob and the transcription was saved successfully
if (result?.id && this.lastAudioBlob) {
@@ -1906,6 +1908,7 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);
errorMessage,
errorCode,
});
+ if (result?.id) syncService.debouncedPush("transcription", result.id);
if (result?.id && this.lastAudioBlob) {
try {