Skip to content

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

Merge pull request #1518 from edwin-luu/feat/linux-launch-at-login

Gabriel Stein97d589bd907c
diff --cc src/helpers/ipcHandlers.js
index 108cc7f30,a0a546406..6c942ad75
--- a/src/helpers/ipcHandlers.js
+++ b/src/helpers/ipcHandlers.js
@@@ -18,33 -17,8 +18,34 @@@ const
toPolicyFailure,
} = require("./policyResponseError");
const { classifyAndLog } = require("./networkErrors");
+// The renderer's ModelRegistry is not main-loadable; the raw registry data is
+// packaged, and the route resolver only needs {id, baseUrl} per provider.
+const transcriptionProviderBaseUrls = () =>
+ require("../models/modelRegistryData.json").transcriptionProviders;
+// ipcMain.handle keeps only the message when a promise rejects, dropping custom
+// props — proxy handlers return {error, code, messageKey} so the renderer can
+// rebuild the error.
+const serializeIpcError =
+ (fn) =>
+ async (...args) => {
+ try {
+ return await fn(...args);
+ } catch (error) {
+ return { error: error.message, code: error.code, messageKey: error.messageKey };
+ }
+ };
+// Which diarization dialect a resolved endpoint speaks, for Custom endpoints
+// that front a known provider. Null when the host offers no known dialect.
+const diarizationHost = (endpoint) => {
+ try {
+ const host = new URL(endpoint).hostname;
+ if (host === "mistral.ai" || host.endsWith(".mistral.ai")) return "mistral";
+ if (host === "openai.com" || host.endsWith(".openai.com")) return "openai";
+ } catch {}
+ return null;
+};
const { resolveLocalServerNeeds } = require("./localServerPolicy");
+ const linuxAutostart = require("./linuxAutostart");
const GnomeShortcutManager = require("./gnomeShortcut");
const HyprlandShortcutManager = require("./hyprlandShortcut");
const AssemblyAiStreaming = require("./assemblyAiStreaming");