Skip to content

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

fix: restore fallback

Chadpihab31db6b84e99
diff --git a/src/components/settings/MeetingSettings.tsx b/src/components/settings/MeetingSettings.tsx
index 98445f12d..3bb1cde32 100644
--- a/src/components/settings/MeetingSettings.tsx
+++ b/src/components/settings/MeetingSettings.tsx
@@ -86,8 +86,6 @@ export function MeetingTranscriptionPanel() {
label: t("settingsPage.transcription.modes.selfHosted"),
description: t("settingsPage.transcription.modes.selfHostedDesc"),
icon: <Network className="w-4 h-4" />,
- disabled: true,
- badge: t("settings.meeting.comingSoon"),
},
],
"transcription",
@@ -96,7 +94,6 @@ export function MeetingTranscriptionPanel() {
);
const handleTranscriptionModeSelect = (mode: InferenceMode) => {
if (!isModeAllowed(mode)) return;
- if (mode === "self-hosted") return;
if (mode === "openwhispr" && !isSignedIn) {
startOnboarding();
return;
@@ -150,6 +147,11 @@ export function MeetingTranscriptionPanel() {
{effectiveTranscriptionMode === "providers" && renderTranscriptionPicker("cloud")}
{effectiveTranscriptionMode === "local" && renderTranscriptionPicker("local")}
+ {effectiveTranscriptionMode === "self-hosted" && (
+ <p className="text-xs text-muted-foreground/80 px-1">
+ {t("settingsPage.speechToText.selfHostedStreamingNote")}
+ </p>
+ )}
<MeetingSpeakerDetectionRow />
</div>
);
diff --git a/src/helpers/meetingTranscriptionRouting.js b/src/helpers/meetingTranscriptionRouting.js
index b060162a9..6a1192137 100644
--- a/src/helpers/meetingTranscriptionRouting.js
+++ b/src/helpers/meetingTranscriptionRouting.js
@@ -34,7 +34,10 @@ export function resolveMeetingTranscriptionOptions({
};
}
- if (transcriptionMode === "openwhispr") {
+ // Self-hosted deliberately shares this branch: Note Recording requires
+ // realtime streaming, so it falls back to the managed pipeline instead of an
+ // endpoint we can't control — and never a stale BYOK provider selection.
+ if (transcriptionMode === "openwhispr" || transcriptionMode === "self-hosted") {
const provider = managedProviders?.[0] ?? DEFAULT_MANAGED_PROVIDER;
return {
provider: `${provider.id}-realtime`,
@@ -44,12 +47,6 @@ export function resolveMeetingTranscriptionOptions({
};
}
- if (transcriptionMode === "self-hosted") {
- throw new Error(
- "Self-hosted realtime transcription is not supported for Note Recording. Choose Local or Cloud Providers."
- );
- }
-
if (transcriptionMode !== "providers") {
throw new Error(`Unsupported Note Recording transcription mode: ${transcriptionMode}`);
}
diff --git a/src/stores/policyRules.ts b/src/stores/policyRules.ts
index 11a2f3c9f..9cbe89b87 100644
--- a/src/stores/policyRules.ts
+++ b/src/stores/policyRules.ts
@@ -224,6 +224,11 @@ export function getTranscriptionSelection(
context: TranscriptionPolicyContext
): TranscriptionSelection {
if (context === "meeting") {
+ // Meeting self-hosted deliberately falls back to the managed realtime
+ // pipeline, so policy must judge that actual destination.
+ if (settings.meetingTranscriptionMode === "self-hosted") {
+ return { mode: "openwhispr", provider: "openwhispr" };
+ }
return {
mode: settings.meetingTranscriptionMode,
provider: settings.meetingCloudTranscriptionProvider || settings.cloudTranscriptionProvider,
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.ts
index ef8e51bbc..0d1001ca1 100644
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@ -61,7 +61,9 @@ const TRANSCRIPTION_POLICY_CATALOG = {
};
const MEETING_TRANSCRIPTION_POLICY_CATALOG = {
- ...TRANSCRIPTION_POLICY_CATALOG,
+ // Meeting self-hosted deliberately streams through the managed realtime
+ // pipeline, so it is not a private destination a policy fallback may select.
+ modes: ["openwhispr", "providers", "local"] as const,
byokProviders: modelRegistryData.transcriptionProviders
.filter((provider) => provider.models.some((model) => model.streaming))
.map((provider) => provider.id),
diff --git a/test/helpers/meetingTranscriptionRouting.test.js b/test/helpers/meetingTranscriptionRouting.test.js
index 35d17a229..bb3b53d8f 100644
--- a/test/helpers/meetingTranscriptionRouting.test.js
+++ b/test/helpers/meetingTranscriptionRouting.test.js
@@ -64,13 +64,19 @@ test("BYOK OpenAI never downgrades to managed cloud when its key is unavailable"
test("self-hosted mode never follows a stale Tinfoil provider", async () => {
const { resolveMeetingTranscriptionOptions } = await load();
- assert.throws(
- () =>
- resolveMeetingTranscriptionOptions({
- ...baseOptions,
- transcriptionMode: "self-hosted",
- }),
- /Self-hosted realtime transcription is not supported/
+ // Realtime is required for Note Recording, so self-hosted deliberately
+ // falls back to the managed pipeline — not the stale BYOK selection.
+ assert.deepEqual(
+ resolveMeetingTranscriptionOptions({
+ ...baseOptions,
+ transcriptionMode: "self-hosted",
+ }),
+ {
+ provider: "assemblyai-realtime",
+ model: "universal-streaming",
+ mode: "openwhispr",
+ language: "en",
+ }
);
});
diff --git a/test/helpers/policyRules.test.js b/test/helpers/policyRules.test.js
index ff9225bc7..c6c935ece 100644
--- a/test/helpers/policyRules.test.js
+++ b/test/helpers/policyRules.test.js
@@ -629,3 +629,37 @@ test("cloud-backup resume fires only on a denial-to-grant transition", async ()
assert.equal(cloudBackupResumed(unmanaged, unmanaged), false);
assert.equal(cloudBackupResumed(managedAllowed, managedAllowed), false);
});
+
+test("meeting self-hosted is judged by its managed-cloud fallback destination", async () => {
+ const { getTranscriptionSelection, isTranscriptionContextAllowed } = await load();
+ const settings = {
+ meetingTranscriptionMode: "self-hosted",
+ meetingCloudTranscriptionProvider: "",
+ cloudTranscriptionProvider: "openai",
+ };
+
+ // Note Recording routes self-hosted to the managed realtime pipeline, so
+ // the policy selection must reflect that real destination.
+ assert.deepEqual(getTranscriptionSelection(settings, "meeting"), {
+ mode: "openwhispr",
+ provider: "openwhispr",
+ });
+
+ const managedNoCloud = {
+ status: "managed",
+ policy: {
+ ...policy,
+ transcription: { allowedModes: ["local", "self-hosted"], allowedByokProviders: [] },
+ },
+ appVersion: null,
+ };
+ assert.equal(isTranscriptionContextAllowed(managedNoCloud, settings, "meeting"), false);
+ assert.equal(
+ isTranscriptionContextAllowed(
+ { status: "managed", policy, appVersion: null },
+ settings,
+ "meeting"
+ ),
+ true
+ );
+});