Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(voice): merge dictation, dictionary and the voice settings into one section

Ruben Lütke1f667ae08a27
diff --git a/jarvis/plugins/tool/navigate.py b/jarvis/plugins/tool/navigate.py
index bca0bec32d..4c87d5d167 100644
--- a/jarvis/plugins/tool/navigate.py
+++ b/jarvis/plugins/tool/navigate.py
@@ -49,6 +49,9 @@ KNOWN: frozenset[str] = frozenset(
"agent-instructions",
"dictionary",
"dictation",
+ "voice-shortcuts",
+ "voice-language",
+ "voice-api-keys",
"agentic-ide",
}
)
@@ -137,6 +140,21 @@ _ALIASES: dict[str, str] = {
"erweiterung": "skills",
"tools": "plugins",
"werkzeuge": "plugins",
+ # Voice section tabs. Deliberately NARROW, multi-word phrases only: the
+ # brain-side matcher (jarvis/brain/navigation_intent.py) runs BEFORE the
+ # capability gate, so a bare "voice" / "stimme" / "voz" alias would hijack
+ # every utterance that merely mentions the voice.
+ "dictation shortcuts": "voice-shortcuts",
+ "dictation keys": "voice-shortcuts",
+ "diktat-tastenkürzel": "voice-shortcuts", # i18n-allow: input vocab
+ "diktat-tasten": "voice-shortcuts", # i18n-allow: input vocab
+ "atajos de dictado": "voice-shortcuts", # i18n-allow: input vocab
+ "dictation language": "voice-language",
+ "diktat-sprache": "voice-language", # i18n-allow: input vocab
+ "idioma de dictado": "voice-language", # i18n-allow: input vocab
+ "voice input keys": "voice-api-keys",
+ "spracheingabe-schlüssel": "voice-api-keys", # i18n-allow: input vocab
+ "claves de entrada de voz": "voice-api-keys", # i18n-allow: input vocab
}
diff --git a/jarvis/ui/web/frontend/src/__tests__/voiceBrandName.test.tsx b/jarvis/ui/web/frontend/src/__tests__/voiceBrandName.test.tsx
new file mode 100644
index 0000000000..a562fbf1e5
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/__tests__/voiceBrandName.test.tsx
@@ -0,0 +1,117 @@
+/**
+ * The merged voice section is named after the user, not after the product.
+ *
+ * Its sidebar row resolves `nav.voice`, whose locale value carries the `{name}`
+ * token, so the row reads "Nova Voice" on an install whose wake word is "Hey
+ * Nova". Two ways that can silently break: the token stops being interpolated
+ * (the row then literally says "{name} Voice"), or someone "fixes" the label by
+ * hardcoding a name into it. Both are invisible to the type checker, and both
+ * would put a trademarked name in front of every user.
+ *
+ * The row also fronts five sections at once — dictation, the dictionary, the
+ * shortcuts, the language and the speech-to-text keys — so it must stay
+ * highlighted for all of them.
+ */
+import { cleanup, render, screen } from "@testing-library/react";
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+// usePluginAttention polls /api/marketplace/plugins — mocked so the sidebar
+// renders without a fetch.
+vi.mock("@/hooks/usePluginAttention", () => ({
+ usePluginAttention: () => ({ count: 0, names: [] }),
+}));
+
+// useVoiceMode fetches /api/settings/voice-mode — same reason.
+vi.mock("@/hooks/useVoiceMode", () => ({
+ useVoiceMode: () => ({
+ mode: "pipeline",
+ activeProvider: null,
+ activeProviderLabel: null,
+ activeModel: null,
+ sessionActive: false,
+ activeSessionMode: null,
+ activeSessionProvider: "",
+ activeSessionModel: "",
+ }),
+}));
+
+import { Sidebar } from "@/components/layout/Sidebar";
+import { useEventStore, type SectionId } from "@/store/events";
+
+function renderSidebar() {
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+ <QueryClientProvider client={client}>
+ <Sidebar />
+ </QueryClientProvider>,
+ );
+}
+
+/** Every section the one voice row fronts. */
+const VOICE_SECTIONS: readonly SectionId[] = [
+ "dictation",
+ "dictionary",
+ "voice-shortcuts",
+ "voice-language",
+ "voice-api-keys",
+];
+
+describe("voice section sidebar brand", () => {
+ beforeEach(() => {
+ useEventStore.setState({
+ voiceState: "idle",
+ transcription: "",
+ transcriptionFinal: true,
+ connected: true,
+ activeSection: "chats",
+ assistantName: "Nova",
+ });
+ });
+
+ afterEach(() => {
+ cleanup();
+ useEventStore.setState({ assistantName: "Assistant" });
+ });
+
+ it("names the row after the configured assistant", () => {
+ renderSidebar();
+
+ const label = screen.getByTestId("nav-row-dictation").textContent?.trim() ?? "";
+ expect(label).toBe("Nova Voice");
+ expect(label).not.toContain("{name}");
+ expect(label.toLowerCase()).not.toContain("jarvis");
+ });
+
+ it("falls back to the neutral default when no name is configured", () => {
+ useEventStore.setState({ assistantName: "Assistant" });
+ renderSidebar();
+
+ const label = screen.getByTestId("nav-row-dictation").textContent?.trim() ?? "";
+ expect(label).toBe("Assistant Voice");
+ expect(label.toLowerCase()).not.toContain("jarvis");
+ });
+
+ it("collapses the former Dictation and Dictionary rows into one", () => {
+ renderSidebar();
+
+ expect(screen.queryByTestId("nav-row-dictionary")).toBeNull();
+ expect(screen.getByTestId("nav-row-dictation")).toBeTruthy();
+ });
+
+ it("stays highlighted for every section it fronts", () => {
+ for (const section of VOICE_SECTIONS) {
+ useEventStore.setState({ activeSection: section });
+ renderSidebar();
+ // The active row carries the inset primary bar; asserting on the class
+ // keeps this independent of the (translated) label.
+ expect(
+ screen.getByTestId("nav-row-dictation").className,
+ `active section ${section} must highlight the voice row`,
+ ).toContain("shadow-[inset_2px_0_0_hsl(var(--primary))]");
+ cleanup();
+ }
+ });
+});
diff --git a/jarvis/ui/web/frontend/src/components/layout/MainView.tsx b/jarvis/ui/web/frontend/src/components/layout/MainView.tsx
index 6d5c3c21fe..6688619025 100644
--- a/jarvis/ui/web/frontend/src/components/layout/MainView.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/MainView.tsx
@@ -86,11 +86,12 @@ const RunInspectorView = lazyView(() =>
default: m.RunInspectorView,
})),
);
-const DictionaryView = lazyView(() =>
- import("@/views/DictionaryView").then((m) => ({ default: m.DictionaryView })),
-);
-const DictationView = lazyView(() =>
- import("@/views/DictationView").then((m) => ({ default: m.DictationView })),
+// Dictation + Dictionary + Shortcuts + Language + Voice API keys are merged
+// behind the one "{name} Voice" sidebar entry. Only the hub is split out here —
+// it statically imports its five tabs, so they travel in its chunk instead of
+// being prefetched as separate ones.
+const VoiceHubView = lazyView(() =>
+ import("@/views/VoiceHubView").then((m) => ({ default: m.VoiceHubView })),
);
const AgentInstructionsView = lazyView(() =>
import("@/views/AgentInstructionsView").then((m) => ({
@@ -267,10 +268,16 @@ function SwitchOnActiveSection({ active }: { active: string }) {
case "taskbar":
case "languages":
return <SettingsView />;
- case "dictionary":
- return <DictionaryView />;
+ // The merged voice section: Dictation (default landing) + Dictionary +
+ // Shortcuts + Language + the speech-to-text keys, behind one tab bar. The
+ // active id doubles as the tab state, so a voice deep-link to any of them
+ // still lands on the right tab.
case "dictation":
- return <DictationView />;
+ case "dictionary":
+ case "voice-shortcuts":
+ case "voice-language":
+ case "voice-api-keys":
+ return <VoiceHubView />;
case "outputs":
return <OutputsView />;
case "socials":
diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
index 143b4b55b9..a11338fae2 100644
--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
@@ -2,7 +2,6 @@ import {
MessageSquare,
Users,
Boxes,
- BookA,
BookOpen,
KeyRound,
Settings,
@@ -119,17 +118,25 @@ const NAV_GROUPS: NavItem[][] = [
icon: Settings,
matchIds: ["settings", "taskbar", "languages"],
},
- {
- id: "dictionary",
- labelKey: "nav.dictionary",
- icon: BookA,
- fallbackLabel: "Dictionary",
- },
+ // The voice section — dictation, the custom vocabulary, the keys that start
+ // it, the dictation language and the speech-to-text providers — behind one
+ // tab switch. "dictation" is the default landing; matchIds keeps the row
+ // highlighted for any of the fronted tabs. The label carries the {name}
+ // token, so the row reads as the user's own wake-word brand.
{
id: "dictation",
- labelKey: "nav.dictation",
+ labelKey: "nav.voice",
icon: Mic,
- fallbackLabel: "Dictation",
+ matchIds: [
+ "dictation",
+ "dictionary",
+ "voice-shortcuts",
+ "voice-language",
+ "voice-api-keys",
+ ],
+ // Name-FREE on purpose: the fallback is rendered verbatim when the key is
+ // missing from a locale, and it is NOT interpolated.
+ fallbackLabel: "Voice",
},
{ id: "outputs", labelKey: "nav.outputs", icon: FolderOpen },
],
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index bef96b0aaa..10780eddb5 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -91,7 +91,11 @@
"contacts": "Kontakte",
"feedback": "Feedback",
"agent_instructions": "{name}.md",
- "agentic_ide": "Agentic IDE"
+ "agentic_ide": "Agentic IDE",
+ "voice": "{name} Stimme",
+ "voice_shortcuts": "Tastenkürzel",
+ "voice_language": "Sprache",
+ "voice_api_keys": "API-Keys"
},
"agent_instructions": {
"subtitle": "Deine persönlichen Präferenzen, wie der Assistent mit dir arbeitet — Ton, Sprache, Voreinstellungen, dauerhafte Fakten. Getrennt vom System-Prompt und hebelt niemals Sicherheit oder Bestätigungen aus.",
@@ -229,7 +233,8 @@
"cancel": "Abbrechen",
"save": "Speichern",
"add_confirm": "Wort hinzufügen",
- "research_preview": "Research Preview"
+ "research_preview": "Research Preview",
+ "applies_to_dictation": "Diese Korrekturen gelten auch fürs Diktat — was du hier korrigierst, ist auch in dem Text korrigiert, der in deinen anderen Apps landet."
},
"dictation": {
"title": "Diktat",
@@ -266,7 +271,66 @@
"clear_history": "Alle löschen",
"raw_prefix": "Gehört:",
"removed_words": "{0} Füllwort/-wörter entfernt",
- "delete_entry": "Diesen Eintrag löschen"
+ "delete_entry": "Diesen Eintrag löschen",
+ "search_placeholder": "Diktate durchsuchen",
+ "stats": {
+ "title": "Dein Diktat",
+ "words": "Wörter",
+ "wpm": "Wörter pro Minute",
+ "streak": "Tage in Folge",
+ "window_lifetime": "Gesamt",
+ "window_days": "Letzte {0} Tage"
+ },
+ "group": {
+ "today": "Heute",
+ "yesterday": "Gestern"
+ },
+ "restore": "Wiederherstellen",
+ "restore_hint": "Aus dem gespeicherten Audio erneut transkribieren.",
+ "restored": "Wiederhergestellt",
+ "discard": "Verwerfen",
+ "discarded_badge": "Verworfen",
+ "delete_permanently": "Endgültig löschen",
+ "copy": "Kopieren",
+ "copied": "Kopiert",
+ "audio_kept": "Audio behalten",
+ "clear_history_hint": "Damit werden auch gespeicherte Audios gelöscht und deine Serie zurückgesetzt.",
+ "outcome": {
+ "inserted": "Eingefügt",
+ "clipboard_only": "In die Zwischenablage kopiert",
+ "unavailable": "Einfügen nicht möglich",
+ "chat": "An den Chat geschickt",
+ "empty": "Nichts gehört",
+ "cancelled": "Abgebrochen",
+ "failed": "Fehlgeschlagen"
+ }
+ },
+ "voice": {
+ "hub": {
+ "subtitle": "Alles, was gesprochene Worte zu Text macht — Diktat, dein eigenes Wörterbuch, die Tasten dafür und die Anbieter dahinter."
+ },
+ "shortcuts": {
+ "title": "Tastenkürzel",
+ "description": "Wähle die Tasten, die das Diktat starten.",
+ "ptt_label": "Zum Sprechen halten",
+ "ptt_hint": "Taste halten, sprechen, loslassen — der Text wird eingefügt.",
+ "toggle_label": "Freihändig",
+ "toggle_hint": "Einmal drücken startet, nochmal drücken stoppt.",
+ "suggestions_title": "Vorgeschlagene Kombinationen"
+ },
+ "language": {
+ "title": "Diktatsprache",
+ "description": "In welcher Sprache dein Diktat transkribiert wird.",
+ "auto": "Automatisch erkennen",
+ "de": "Deutsch",
+ "en": "Englisch",
+ "es": "Spanisch",
+ "auto_hint": "Automatische Erkennung passt für fast alle. Eine feste Sprache kann die Erkennung verschlechtern, wenn das Modell nicht dafür trainiert wurde."
+ },
+ "api_keys": {
+ "title": "Spracheingabe",
+ "description": "Schlüssel und Anbieter, die deine Sprache in Text verwandeln."
+ }
},
"voice_state": {
"idle": "Bereit",
@@ -1459,7 +1523,8 @@
"alt_f4": "Alt+F4 schließt das aktive Fenster — wähle eine andere Kombination.",
"ctrl_c": "Strg+C ist der Kopieren-Shortcut — wähle eine andere Kombination.",
"collision": "Überschneidet sich mit {action} ({combo}) — ein Tastendruck würde beides auslösen. Wähle andere Tasten.",
- "solo_nav": "Erlaubt — aber beachte: Diese Taste löst auch beim Navigieren im Text aus."
+ "solo_nav": "Erlaubt — aber beachte: Diese Taste löst auch beim Navigieren im Text aus.",
+ "f12_reserved": "F12 ist dauerhaft vom System reserviert — wähle eine andere Taste."
},
"keyboard": {
"legend_pressed": "Gedrückt",
@@ -1467,7 +1532,8 @@
"legend_bound": "Schon belegt",
"hint": "Tasten drücken oder anklicken, um die Kombi zu bauen",
"reserved": "Vom System reserviert"
- }
+ },
+ "dictate_toggle_label": "Freihändiges Diktat"
},
"codex_title": "OpenAI Codex CLI",
"codex_description": "Manueller Pfad für Windows-PATH-Probleme. Leer lassen nutzt 'codex' aus PATH.",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 47ac417f32..40450b9de4 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -91,7 +91,11 @@
"contacts": "Contacts",
"feedback": "Feedback",
"agent_instructions": "{name}.md",
- "agentic_ide": "Agentic IDE"
+ "agentic_ide": "Agentic IDE",
+ "voice": "{name} Voice",
+ "voice_shortcuts": "Shortcuts",
+ "voice_language": "Language",
+ "voice_api_keys": "API Keys"
},
"agent_instructions": {
"subtitle": "Your personal preferences for how the assistant works with you — tone, language, defaults, standing facts. Separate from the System Prompt, and it never overrides safety or confirmations.",
@@ -229,7 +233,8 @@
"cancel": "Cancel",
"save": "Save",
"add_confirm": "Add word",
- "research_preview": "Research Preview"
+ "research_preview": "Research Preview",
+ "applies_to_dictation": "These corrections apply to dictation as well — anything you fix here is fixed in the text that lands in your other apps."
},
"dictation": {
"title": "Dictation",
@@ -266,7 +271,66 @@
"clear_history": "Delete all",
"raw_prefix": "Heard:",
"removed_words": "{0} filler word(s) removed",
- "delete_entry": "Delete this entry"
+ "delete_entry": "Delete this entry",
+ "search_placeholder": "Search your dictations",
+ "stats": {
+ "title": "Your dictation",
+ "words": "Words",
+ "wpm": "Words per minute",
+ "streak": "Day streak",
+ "window_lifetime": "All time",
+ "window_days": "Last {0} days"
+ },
+ "group": {
+ "today": "Today",
+ "yesterday": "Yesterday"
+ },
+ "restore": "Restore",
+ "restore_hint": "Transcribe again from the saved audio.",
+ "restored": "Restored",
+ "discard": "Discard",
+ "discarded_badge": "Discarded",
+ "delete_permanently": "Delete permanently",
+ "copy": "Copy",
+ "copied": "Copied",
+ "audio_kept": "Audio kept",
+ "clear_history_hint": "This also deletes saved audio and resets your streak.",
+ "outcome": {
+ "inserted": "Inserted",
+ "clipboard_only": "Copied to clipboard",
+ "unavailable": "Could not insert",
+ "chat": "Sent to chat",
+ "empty": "Nothing heard",
+ "cancelled": "Cancelled",
+ "failed": "Failed"
+ }
+ },
+ "voice": {
+ "hub": {
+ "subtitle": "Everything that turns what you say into text — dictation, your own vocabulary, the keys that start it, and the providers behind it."
+ },
+ "shortcuts": {
+ "title": "Shortcuts",
+ "description": "Choose the keys that start dictation.",
+ "ptt_label": "Push to talk",
+ "ptt_hint": "Hold the key, speak, release to insert.",
+ "toggle_label": "Hands-free",
+ "toggle_hint": "Press once to start, press again to stop.",
+ "suggestions_title": "Suggested combinations"
+ },
+ "language": {
+ "title": "Dictation language",
+ "description": "Which language your dictation is transcribed in.",
+ "auto": "Detect automatically",
+ "de": "German",
+ "en": "English",
+ "es": "Spanish",
+ "auto_hint": "Automatic detection is right for almost everyone. Pinning a language can make recognition worse on a model that was not trained for it."
+ },
+ "api_keys": {
+ "title": "Voice input",
+ "description": "Keys and providers used to turn your speech into text."
+ }
},
"voice_state": {
"idle": "Ready",
@@ -1460,7 +1524,8 @@
"alt_f4": "Alt+F4 closes the active window — choose another combination.",
"ctrl_c": "Ctrl+C is the copy shortcut — choose another combination.",
"collision": "Overlaps with {action} ({combo}) — one press would trigger both. Choose different keys.",
- "solo_nav": "Allowed — but note: this key also fires while navigating text."
+ "solo_nav": "Allowed — but note: this key also fires while navigating text.",
+ "f12_reserved": "F12 is permanently reserved by the system — pick another key."
},
"keyboard": {
"legend_pressed": "Pressed",
@@ -1468,7 +1533,8 @@
"legend_bound": "Already used",
"hint": "Press keys or click them to build the combo",
"reserved": "Reserved by the system"
- }
+ },
+ "dictate_toggle_label": "Hands-free dictation"
},
"codex_title": "OpenAI Codex CLI",
"codex_description": "Manual path for Windows PATH issues. Empty uses 'codex' from PATH.",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index 275453b162..65977c09eb 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -91,7 +91,11 @@
"contacts": "Contactos",
"feedback": "Comentarios",
"agent_instructions": "{name}.md",
- "agentic_ide": "IDE agéntico"
+ "agentic_ide": "IDE agéntico",
+ "voice": "Voz de {name}",
+ "voice_shortcuts": "Atajos",
+ "voice_language": "Idioma",
+ "voice_api_keys": "Claves API"
},
"agent_instructions": {
"subtitle": "Tus preferencias personales sobre cómo el asistente trabaja contigo — tono, idioma, valores por defecto, hechos permanentes. Separado del System Prompt y nunca anula la seguridad ni las confirmaciones.",
@@ -229,7 +233,8 @@
"cancel": "Cancelar",
"save": "Guardar",
"add_confirm": "Añadir palabra",
- "research_preview": "Research Preview"
+ "research_preview": "Research Preview",
+ "applies_to_dictation": "Estas correcciones también se aplican al dictado — lo que corrijas aquí queda corregido en el texto que llega a tus otras apps."
},
"dictation": {
"title": "Dictado",
@@ -266,7 +271,66 @@
"clear_history": "Borrar todo",
"raw_prefix": "Se oyó:",
"removed_words": "{0} muletilla(s) eliminada(s)",
- "delete_entry": "Eliminar esta entrada"
+ "delete_entry": "Eliminar esta entrada",
+ "search_placeholder": "Buscar en tus dictados",
+ "stats": {
+ "title": "Tu dictado",
+ "words": "Palabras",
+ "wpm": "Palabras por minuto",
+ "streak": "Días seguidos",
+ "window_lifetime": "Desde siempre",
+ "window_days": "Últimos {0} días"
+ },
+ "group": {
+ "today": "Hoy",
+ "yesterday": "Ayer"
+ },
+ "restore": "Restaurar",
+ "restore_hint": "Volver a transcribir desde el audio guardado.",
+ "restored": "Restaurado",
+ "discard": "Descartar",
+ "discarded_badge": "Descartado",
+ "delete_permanently": "Eliminar definitivamente",
+ "copy": "Copiar",
+ "copied": "Copiado",
+ "audio_kept": "Audio guardado",
+ "clear_history_hint": "Esto también borra el audio guardado y reinicia tu racha.",
+ "outcome": {
+ "inserted": "Insertado",
+ "clipboard_only": "Copiado al portapapeles",
+ "unavailable": "No se pudo insertar",
+ "chat": "Enviado al chat",
+ "empty": "No se oyó nada",
+ "cancelled": "Cancelado",
+ "failed": "Fallido"
+ }
+ },
+ "voice": {
+ "hub": {
+ "subtitle": "Todo lo que convierte lo que dices en texto — dictado, tu propio vocabulario, las teclas que lo inician y los proveedores detrás."
+ },
+ "shortcuts": {
+ "title": "Atajos",
+ "description": "Elige las teclas que inician el dictado.",
+ "ptt_label": "Pulsar para hablar",
+ "ptt_hint": "Mantén la tecla, habla y suéltala para insertar.",
+ "toggle_label": "Manos libres",
+ "toggle_hint": "Una pulsación empieza, otra detiene.",
+ "suggestions_title": "Combinaciones sugeridas"
+ },
+ "language": {
+ "title": "Idioma del dictado",
+ "description": "En qué idioma se transcribe tu dictado.",
+ "auto": "Detectar automáticamente",
+ "de": "Alemán",
+ "en": "Inglés",
+ "es": "Español",
+ "auto_hint": "La detección automática va bien para casi todo el mundo. Fijar un idioma puede empeorar el reconocimiento en un modelo que no se entrenó para él."
+ },
+ "api_keys": {
+ "title": "Entrada de voz",
+ "description": "Claves y proveedores que convierten tu voz en texto."
+ }
},
"voice_state": {
"idle": "Listo",
@@ -1459,7 +1523,8 @@
"alt_f4": "Alt+F4 cierra la ventana activa — elige otra combinación.",
"ctrl_c": "Ctrl+C es el atajo de copiar — elige otra combinación.",
"collision": "Se solapa con {action} ({combo}) — una pulsación activaría ambas. Elige otras teclas.",
- "solo_nav": "Permitido — pero ten en cuenta: esta tecla también se dispara al navegar por el texto."
+ "solo_nav": "Permitido — pero ten en cuenta: esta tecla también se dispara al navegar por el texto.",
+ "f12_reserved": "F12 está reservada permanentemente por el sistema — elige otra tecla."
},
"keyboard": {
"legend_pressed": "Pulsada",
@@ -1467,7 +1532,8 @@
"legend_bound": "Ya usada",
"hint": "Pulsa teclas o haz clic en ellas para crear la combinación",
"reserved": "Reservada por el sistema"
- }
+ },
+ "dictate_toggle_label": "Dictado manos libres"
},
"codex_title": "OpenAI Codex CLI",
"codex_description": "Ruta manual para problemas de PATH en Windows. Vacío usa 'codex' del PATH.",
diff --git a/jarvis/ui/web/frontend/src/i18n/voice-i18n-parity.test.ts b/jarvis/ui/web/frontend/src/i18n/voice-i18n-parity.test.ts
new file mode 100644
index 0000000000..20474c29f3
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/i18n/voice-i18n-parity.test.ts
@@ -0,0 +1,112 @@
+/**
+ * Locale parity for the merged voice section.
+ *
+ * The whole section's copy — the tab labels, the shortcuts/language/API-keys
+ * tabs, and every dictation string added alongside them — is seeded into en, de
+ * and es in one pass. A key that exists in only one locale silently renders as
+ * the raw key ("dictation.stats.streak") for everyone else, which no type check
+ * catches. This locks the three files to the same key set and to non-empty
+ * values.
+ */
+import { describe, expect, it } from "vitest";
+import en from "./locales/en.json";
+import de from "./locales/de.json";
+import es from "./locales/es.json";
+
+type Loc = Record<string, unknown>;
+
+function flatten(obj: Loc, prefix = ""): string[] {
+ const out: string[] = [];
+ for (const [k, v] of Object.entries(obj)) {
+ const key = prefix ? `${prefix}.${k}` : k;
+ if (v && typeof v === "object" && !Array.isArray(v)) {
+ out.push(...flatten(v as Loc, key));
+ } else {
+ out.push(key);
+ }
+ }
+ return out;
+}
+
+function namespaceAt(loc: Loc, path: string): Loc {
+ let cur: unknown = loc;
+ for (const part of path.split(".")) {
+ cur = (cur as Loc | undefined)?.[part];
+ }
+ return (cur ?? {}) as Loc;
+}
+
+/** Namespaces the voice section owns or extends, and their minimum key count. */
+const NAMESPACES: readonly (readonly [string, number])[] = [
+ ["voice", 12],
+ ["dictation", 30],
+ ["settings_view.keybinds", 20],
+];
+
+const LOCALES = [
+ ["de", de],
+ ["es", es],
+] as const;
+
+describe("voice section i18n parity", () => {
+ for (const [ns, minimum] of NAMESPACES) {
+ it(`en defines a non-trivial "${ns}" key set`, () => {
+ // Guards the walker itself: without this a typo in the namespace path
+ // would compare two empty sets and pass vacuously.
+ expect(flatten(namespaceAt(en as Loc, ns)).length).toBeGreaterThan(minimum);
+ });
+
+ for (const [lang, loc] of LOCALES) {
+ it(`${lang} has the same "${ns}" keys as en`, () => {
+ const enKeys = new Set(flatten(namespaceAt(en as Loc, ns)));
+ const langKeys = new Set(flatten(namespaceAt(loc as Loc, ns)));
+ const missing = [...enKeys].filter((k) => !langKeys.has(k));
+ const extra = [...langKeys].filter((k) => !enKeys.has(k));
+ expect({ missing, extra }).toEqual({ missing: [], extra: [] });
+ });
+ }
+ }
+
+ for (const [lang, loc] of [["en", en], ...LOCALES] as const) {
+ it(`${lang}: every voice value is a non-empty string`, () => {
+ const ns = namespaceAt(loc as Loc, "voice");
+ const empty = flatten(ns).filter((key) => {
+ let cur: unknown = ns;
+ for (const part of key.split(".")) cur = (cur as Loc)[part];
+ return typeof cur !== "string" || cur.trim() === "";
+ });
+ expect(empty).toEqual([]);
+ });
+ }
+});
+
+describe("voice section tab labels", () => {
+ const NAV_KEYS = [
+ "voice",
+ "voice_shortcuts",
+ "voice_language",
+ "voice_api_keys",
+ // The two pre-existing tabs are reused as labels, so they must not vanish.
+ "dictation",
+ "dictionary",
+ ] as const;
+
+ for (const [lang, loc] of [["en", en], ...LOCALES] as const) {
+ it(`${lang}: has every nav label the voice tab bar renders`, () => {
+ const nav = namespaceAt(loc as Loc, "nav");
+ for (const key of NAV_KEYS) {
+ expect(typeof nav[key], `nav.${key}`).toBe("string");
+ expect((nav[key] as string).trim().length, `nav.${key}`).toBeGreaterThan(0);
+ }
+ });
+
+ it(`${lang}: nav.voice carries the {name} brand token and no fixed name`, () => {
+ // The section is named after the user's wake word. A hardcoded product
+ // name here would be wrong for every install that renamed the assistant —
+ // and a trademarked one would be wrong for all of them.
+ const value = namespaceAt(loc as Loc, "nav").voice as string;
+ expect(value).toContain("{name}");
+ expect(value.toLowerCase()).not.toContain("jarvis");
+ });
+ }
+});
diff --git a/jarvis/ui/web/frontend/src/store/events.ts b/jarvis/ui/web/frontend/src/store/events.ts
index fdbe9780b3..5717a230ef 100644
--- a/jarvis/ui/web/frontend/src/store/events.ts
+++ b/jarvis/ui/web/frontend/src/store/events.ts
@@ -38,6 +38,13 @@ export type SectionId =
| "agent-instructions"
| "dictionary"
| "dictation"
+ // The three tabs added by the merged voice section. "dictation" (default
+ // landing) and "dictionary" keep their original ids on purpose — renaming
+ // them would break the Command-Registry ui_section binding and every existing
+ // voice deep-link for no gain.
+ | "voice-shortcuts"
+ | "voice-language"
+ | "voice-api-keys"
| "agentic-ide";
export const SECTION_IDS = [
@@ -68,6 +75,12 @@ export const SECTION_IDS = [
"agent-instructions",
"dictionary",
"dictation",
+ // `satisfies` only catches array entries that are missing from the union,
+ // never a union member missing from the array — these three have to be added
+ // by hand as well (docs/BUGS.md, the recurring enum-drift class).
+ "voice-shortcuts",
+ "voice-language",
+ "voice-api-keys",
"agentic-ide",
] as const satisfies readonly SectionId[];
@@ -107,6 +120,12 @@ export const SECTION_LABELS: Record<SectionId, string> = {
"agent-instructions": "Agent Instructions",
dictionary: "Dictionary",
dictation: "Dictation",
+ // Plain English, deliberately NOT the "{name} Voice" brand: these labels are
+ // read back by the voice-navigation toast, which does not interpolate the
+ // assistant name. Naming the sub-section is also the more useful readback.
+ "voice-shortcuts": "Voice Shortcuts",
+ "voice-language": "Dictation Language",
+ "voice-api-keys": "Voice Input Keys",
"agentic-ide": "Agentic IDE",
};
diff --git a/jarvis/ui/web/frontend/src/views/DictationView.tsx b/jarvis/ui/web/frontend/src/views/DictationView.tsx
index 63641b5e81..396318a75e 100644
--- a/jarvis/ui/web/frontend/src/views/DictationView.tsx
+++ b/jarvis/ui/web/frontend/src/views/DictationView.tsx
@@ -30,7 +30,18 @@ import { useT } from "@/i18n";
*
* Backed by /api/dictation (status/start/stop/settings/history) via useDictation.
*/
-export function DictationView() {
+export interface DictationViewProps {
+ /**
+ * Suppress this view's own `ViewHeader`.
+ *
+ * Set by the merged voice section, which renders one "{name} Voice" header
+ * above the tab bar — a second bordered band right below it reads as a
+ * rendering fault. Standalone rendering keeps its own header.
+ */
+ hideHeader?: boolean;
+}
+
+export function DictationView({ hideHeader = false }: DictationViewProps = {}) {
const t = useT();
const {
status,
@@ -79,11 +90,13 @@ export function DictationView() {
return (
<div className="flex h-full flex-col">
- <ViewHeader
- icon={<Mic className="h-4 w-4 text-primary" />}
- title={t("dictation.title")}
- subtitle={t("dictation.description")}
- />
+ {!hideHeader && (
+ <ViewHeader
+ icon={<Mic className="h-4 w-4 text-primary" />}
+ title={t("dictation.title")}
+ subtitle={t("dictation.description")}
+ />
+ )}
<div className="flex-1 overflow-y-auto scrollbar-jarvis p-6">
<div className="mx-auto flex max-w-3xl flex-col gap-4">
{error && <p className="text-xs text-destructive">{error}</p>}
diff --git a/jarvis/ui/web/frontend/src/views/DictionaryView.tsx b/jarvis/ui/web/frontend/src/views/DictionaryView.tsx
index c86cba19bf..9a9d8c3e6e 100644
--- a/jarvis/ui/web/frontend/src/views/DictionaryView.tsx
+++ b/jarvis/ui/web/frontend/src/views/DictionaryView.tsx
@@ -29,7 +29,18 @@ import { useT } from "@/i18n";
*
* Backed by /api/dictionary (GET/POST/PATCH/DELETE) via useDictionary.
*/
-export function DictionaryView() {
+export interface DictionaryViewProps {
+ /**
+ * Suppress this view's own `ViewHeader`.
+ *
+ * Set by the merged voice section, which renders one "{name} Voice" header
+ * above the tab bar — a second bordered band right below it reads as a
+ * rendering fault. Standalone rendering keeps its own header.
+ */
+ hideHeader?: boolean;
+}
+
+export function DictionaryView({ hideHeader = false }: DictionaryViewProps = {}) {
const t = useT();
const { entries, loading, error, createEntry, updateEntry, removeEntry } =
useDictionary();
@@ -64,16 +75,18 @@ export function DictionaryView() {
return (
<div className="flex h-full flex-col">
- <ViewHeader
- icon={<BookA className="h-4 w-4 text-primary" />}
- title={t("dictionary.title")}
- titleBadge={
- <span className="shrink-0 rounded-full border border-primary/30 bg-primary/10 px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide text-primary">
- {t("dictionary.research_preview")}
- </span>
- }
- subtitle={t("dictionary.description")}
- />
+ {!hideHeader && (
+ <ViewHeader
+ icon={<BookA className="h-4 w-4 text-primary" />}
+ title={t("dictionary.title")}
+ titleBadge={
+ <span className="shrink-0 rounded-full border border-primary/30 bg-primary/10 px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide text-primary">
+ {t("dictionary.research_preview")}
+ </span>
+ }
+ subtitle={t("dictionary.description")}
+ />
+ )}
<div className="flex-1 overflow-y-auto scrollbar-jarvis p-6">
<div className="mx-auto max-w-3xl">
<div className="flex items-center gap-3">
diff --git a/jarvis/ui/web/frontend/src/views/VoiceHubView.test.tsx b/jarvis/ui/web/frontend/src/views/VoiceHubView.test.tsx
new file mode 100644
index 0000000000..99ccc890f5
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/VoiceHubView.test.tsx
@@ -0,0 +1,149 @@
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+// Mutable mock store state — hoisted so the vi.mock factory below can close over
+// it. Each test sets `activeSection` before rendering and inspects the
+// `setActiveSection` spy.
+const { mockState } = vi.hoisted(() => ({
+ mockState: {
+ activeSection: "dictation" as string,
+ setActiveSection: vi.fn(),
+ },
+}));
+
+vi.mock("@/store/events", () => ({
+ useEventStore: (selector: (s: typeof mockState) => unknown) => selector(mockState),
+}));
+
+vi.mock("@/i18n", () => ({
+ // Identity translator: returns the key so assertions can match exact labels.
+ useT: () => (key: string) => key,
+}));
+
+// ViewHeader lives in ChatsView, which drags in the whole chat surface. The hub
+// only needs the header's shape, so stub it — and give it a testid so "exactly
+// one header" is assertable.
+vi.mock("@/views/ChatsView", () => ({
+ ViewHeader: ({ title, subtitle }: { title: string; subtitle?: string }) => (
+ <header data-testid="view-header">
+ <span data-testid="view-header-title">{title}</span>
+ <span data-testid="view-header-subtitle">{subtitle}</span>
+ </header>
+ ),
+}));
+
+// Stub every embedded tab — VoiceHubView is a thin wrapper; we assert which
+// child it renders and that it tells that child to stand its own header down,
+// not the children's behaviour.
+function stub(name: string) {
+ return ({ hideHeader }: { hideHeader?: boolean }) => (
+ <div data-testid={name} data-hide-header={hideHeader ? "true" : "false"}>
+ {name}
+ </div>
+ );
+}
+
+vi.mock("@/views/DictationView", () => ({ DictationView: stub("DICTATION_CONTENT") }));
+vi.mock("@/views/DictionaryView", () => ({
+ DictionaryView: stub("DICTIONARY_CONTENT"),
+}));
+vi.mock("@/views/voice/ShortcutsTab", () => ({
+ ShortcutsTab: stub("SHORTCUTS_CONTENT"),
+}));
+vi.mock("@/views/voice/LanguageTab", () => ({ LanguageTab: stub("LANGUAGE_CONTENT") }));
+vi.mock("@/views/voice/VoiceApiKeysTab", () => ({
+ VoiceApiKeysTab: stub("API_KEYS_CONTENT"),
+}));
+
+import { VoiceHubView } from "@/views/VoiceHubView";
+
+beforeEach(() => {
+ mockState.activeSection = "dictation";
+ mockState.setActiveSection = vi.fn();
+});
+
+afterEach(() => {
+ cleanup();
+ vi.clearAllMocks();
+});
+
+describe("VoiceHubView tab switching", () => {
+ it("lands on Dictation and marks its tab current", () => {
+ mockState.activeSection = "dictation";
+ render(<VoiceHubView />);
+
+ expect(screen.getByTestId("DICTATION_CONTENT")).toBeTruthy();
+ expect(screen.queryByTestId("DICTIONARY_CONTENT")).toBeNull();
+
+ expect(
+ screen.getByRole("button", { name: "nav.dictation" }).getAttribute("aria-current"),
+ ).toBe("page");
+ // All five tabs are always present, whichever one is active.
+ for (const key of [
+ "nav.dictation",
+ "nav.dictionary",
+ "nav.voice_shortcuts",
+ "nav.voice_language",
+ "nav.voice_api_keys",
+ ]) {
+ expect(screen.getByRole("button", { name: key })).toBeTruthy();
+ }
+ });
+
+ it("activates the voice-shortcuts section when its tab is clicked", () => {
+ mockState.activeSection = "dictation";
+ render(<VoiceHubView />);
+
+ fireEvent.click(screen.getByRole("button", { name: "nav.voice_shortcuts" }));
+ expect(mockState.setActiveSection).toHaveBeenCalledWith("voice-shortcuts");
+ });
+
+ it("shows the API-Keys tab when activeSection is 'voice-api-keys'", () => {
+ mockState.activeSection = "voice-api-keys";
+ render(<VoiceHubView />);
+
+ expect(screen.getByTestId("API_KEYS_CONTENT")).toBeTruthy();
+ expect(screen.queryByTestId("DICTATION_CONTENT")).toBeNull();
+ expect(
+ screen
+ .getByRole("button", { name: "nav.voice_api_keys" })
+ .getAttribute("aria-current"),
+ ).toBe("page");
+ });
+
+ it("falls back to Dictation for an unexpected section id", () => {
+ mockState.activeSection = "chats";
+ render(<VoiceHubView />);
+
+ expect(screen.getByTestId("DICTATION_CONTENT")).toBeTruthy();
+ });
+});
+
+describe("VoiceHubView single header", () => {
+ it("renders exactly one header, titled from the brand-carrying nav.voice key", () => {
+ render(<VoiceHubView />);
+
+ // Two stacked bordered bands (hub header + child header) read as a
+ // rendering fault — the section title is drawn once, here.
+ expect(screen.getAllByTestId("view-header")).toHaveLength(1);
+ expect(screen.getByTestId("view-header-title").textContent).toBe("nav.voice");
+ expect(screen.getByTestId("view-header-subtitle").textContent).toBe(
+ "voice.hub.subtitle",
+ );
+ });
+
+ it("tells the mounted tab to stand its own header down", () => {
+ for (const [section, testid] of [
+ ["dictation", "DICTATION_CONTENT"],
+ ["dictionary", "DICTIONARY_CONTENT"],
+ ["voice-shortcuts", "SHORTCUTS_CONTENT"],
+ ["voice-language", "LANGUAGE_CONTENT"],
+ ["voice-api-keys", "API_KEYS_CONTENT"],
+ ] as const) {
+ mockState.activeSection = section;
+ render(<VoiceHubView />);
+ expect(screen.getByTestId(testid).getAttribute("data-hide-header")).toBe("true");
+ cleanup();
+ }
+ });
+});
diff --git a/jarvis/ui/web/frontend/src/views/VoiceHubView.tsx b/jarvis/ui/web/frontend/src/views/VoiceHubView.tsx
new file mode 100644
index 0000000000..0369121879
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/VoiceHubView.tsx
@@ -0,0 +1,70 @@
+import { Mic } from "lucide-react";
+
+import { useEventStore } from "@/store/events";
+import { SectionTabBar, type SectionTab } from "@/components/layout/SectionTabBar";
+import { ViewHeader } from "@/views/ChatsView";
+import { useT } from "@/i18n";
+import { DictationView } from "@/views/DictationView";
+import { DictionaryView } from "@/views/DictionaryView";
+import { ShortcutsTab } from "@/views/voice/ShortcutsTab";
+import { LanguageTab } from "@/views/voice/LanguageTab";
+import { VoiceApiKeysTab } from "@/views/voice/VoiceApiKeysTab";
+
+/**
+ * Combined voice section — everything that turns speech into text, behind one
+ * sidebar entry:
+ *
+ * [ Dictation ] [ Dictionary ] [ Shortcuts ] [ Language ] [ API Keys ]
+ *
+ * Same merged-section pattern as ExtensionsView / ClisHubView: the active
+ * sidebar section id IS the tab state, so voice deep-links ("open the
+ * dictionary") and the NavigateSidebar event keep landing on the right tab with
+ * no extra routing.
+ *
+ * One difference from those two precedents, and it is deliberate: the section
+ * title is rendered ONCE here, above the tab bar, instead of each child drawing
+ * its own header below it. Two stacked bordered bands read as a rendering fault,
+ * and the merged brand ("{name} Voice") belongs above the tabs it fronts — so
+ * every child is asked to stand its header down via `hideHeader`.
+ *
+ * The title comes from the `nav.voice` locale value, which carries the `{name}`
+ * token; `useT()` substitutes the live wake-word brand. Never hardcode a name
+ * here.
+ */
+
+const TABS = [
+ { id: "dictation", labelKey: "nav.dictation" },
+ { id: "dictionary", labelKey: "nav.dictionary" },
+ { id: "voice-shortcuts", labelKey: "nav.voice_shortcuts" },
+ { id: "voice-language", labelKey: "nav.voice_language" },
+ { id: "voice-api-keys", labelKey: "nav.voice_api_keys" },
+] as const satisfies readonly SectionTab[];
+
+export function VoiceHubView() {
+ const t = useT();
+ const active = useEventStore((s) => s.activeSection);
+
+ // The router only mounts us for the five ids above; any other value is
+ // unexpected — fall back to the Dictation tab defensively.
+ const current = TABS.some((tab) => tab.id === active) ? active : "dictation";
+
+ return (
+ <div className="flex h-full flex-col">
+ <ViewHeader
+ icon={<Mic className="h-4 w-4 text-primary" />}
+ title={t("nav.voice")}
+ subtitle={t("voice.hub.subtitle")}
+ />
+ <SectionTabBar tabs={TABS} />
+ {/* min-h-0 is load-bearing: without it a flex child with its own
+ scroll container grows past the viewport instead of scrolling. */}
+ <div className="min-h-0 flex-1 overflow-hidden">
+ {current === "dictation" && <DictationView hideHeader />}
+ {current === "dictionary" && <DictionaryView hideHeader />}
+ {current === "voice-shortcuts" && <ShortcutsTab hideHeader />}
+ {current === "voice-language" && <LanguageTab hideHeader />}
+ {current === "voice-api-keys" && <VoiceApiKeysTab hideHeader />}
+ </div>
+ </div>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsx b/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsx
new file mode 100644
index 0000000000..4296f94079
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsx
@@ -0,0 +1,45 @@
+import { Languages } from "lucide-react";
+
+import { ViewHeader } from "@/views/ChatsView";
+import { useT } from "@/i18n";
+
+export interface LanguageTabProps {
+ /**
+ * Suppress this view's own `ViewHeader`.
+ *
+ * Set by the merged voice section, which renders one "{name} Voice" header
+ * above the tab bar — a second bordered band right below it reads as a
+ * rendering fault. Standalone rendering keeps its own header.
+ */
+ hideHeader?: boolean;
+}
+
+/**
+ * "Language" tab of the merged voice section — which language dictation is
+ * transcribed in.
+ *
+ * Placeholder shell: the shell, its section id and its i18n keys ship first so
+ * the rest of the section can be built against a stable surface. The language
+ * selector over `[dictation].language` lands here next.
+ */
+export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {
+ const t = useT();
+
+ return (
+ <div className="flex h-full flex-col">
+ {!hideHeader && (
+ <ViewHeader
+ icon={<Languages className="h-4 w-4 text-primary" />}
+ title={t("voice.language.title")}
+ subtitle={t("voice.language.description")}
+ />
+ )}
+ <div
+ className="flex-1 overflow-y-auto scrollbar-jarvis p-6"
+ data-testid="voice-language-tab"
+ >
+ <div className="mx-auto flex max-w-3xl flex-col gap-4" />
+ </div>
+ </div>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/voice/ShortcutsTab.tsx b/jarvis/ui/web/frontend/src/views/voice/ShortcutsTab.tsx
new file mode 100644
index 0000000000..a829b9b07f
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/voice/ShortcutsTab.tsx
@@ -0,0 +1,45 @@
+import { Keyboard } from "lucide-react";
+
+import { ViewHeader } from "@/views/ChatsView";
+import { useT } from "@/i18n";
+
+export interface ShortcutsTabProps {
+ /**
+ * Suppress this view's own `ViewHeader`.
+ *
+ * Set by the merged voice section, which renders one "{name} Voice" header
+ * above the tab bar — a second bordered band right below it reads as a
+ * rendering fault. Standalone rendering keeps its own header.
+ */
+ hideHeader?: boolean;
+}
+
+/**
+ * "Shortcuts" tab of the merged voice section — the keys that start dictation.
+ *
+ * Placeholder shell: the shell, its section id and its i18n keys ship first so
+ * the rest of the section can be built against a stable surface. The two
+ * keybind rows (push-to-talk + hands-free) and the on-screen keyboard land here
+ * next.
+ */
+export function ShortcutsTab({ hideHeader = false }: ShortcutsTabProps = {}) {
+ const t = useT();
+
+ return (
+ <div className="flex h-full flex-col">
+ {!hideHeader && (
+ <ViewHeader
+ icon={<Keyboard className="h-4 w-4 text-primary" />}
+ title={t("voice.shortcuts.title")}
+ subtitle={t("voice.shortcuts.description")}
+ />
+ )}
+ <div
+ className="flex-1 overflow-y-auto scrollbar-jarvis p-6"
+ data-testid="voice-shortcuts-tab"
+ >
+ <div className="mx-auto flex max-w-3xl flex-col gap-4" />
+ </div>
+ </div>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsx b/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsx
new file mode 100644
index 0000000000..2f450c58cc
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsx
@@ -0,0 +1,46 @@
+import { KeyRound } from "lucide-react";
+
+import { ViewHeader } from "@/views/ChatsView";
+import { useT } from "@/i18n";
+
+export interface VoiceApiKeysTabProps {
+ /**
+ * Suppress this view's own `ViewHeader`.
+ *
+ * Set by the merged voice section, which renders one "{name} Voice" header
+ * above the tab bar — a second bordered band right below it reads as a
+ * rendering fault. Standalone rendering keeps its own header.
+ */
+ hideHeader?: boolean;
+}
+
+/**
+ * "API Keys" tab of the merged voice section — the providers and keys that turn
+ * speech into text.
+ *
+ * Placeholder shell: the shell, its section id and its i18n keys ship first so
+ * the rest of the section can be built against a stable surface. The speech-to-
+ * text provider block (the same subtree the API-Keys view renders, scoped to
+ * the `stt` tier) lands here next.
+ */
+export function VoiceApiKeysTab({ hideHeader = false }: VoiceApiKeysTabProps = {}) {
+ const t = useT();
+
+ return (
+ <div className="flex h-full flex-col">
+ {!hideHeader && (
+ <ViewHeader
+ icon={<KeyRound className="h-4 w-4 text-primary" />}
+ title={t("voice.api_keys.title")}
+ subtitle={t("voice.api_keys.description")}
+ />
+ )}
+ <div
+ className="flex-1 overflow-y-auto scrollbar-jarvis p-6"
+ data-testid="voice-api-keys-tab"
+ >
+ <div className="mx-auto flex max-w-3xl flex-col gap-4" />
+ </div>
+ </div>
+ );
+}