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(providers): choose GPT-Live or the Pipeline on the Live calls tab (#705) (#761)

Ruben Lütke6386e5f2f146
diff --git a/docs/product/everyday-use/voice-conversations.md b/docs/product/everyday-use/voice-conversations.md
index 349b7b1812..68af593038 100644
--- a/docs/product/everyday-use/voice-conversations.md
+++ b/docs/product/everyday-use/voice-conversations.md
@@ -8,7 +8,7 @@ order: 2
diataxis: explanation
status: active
owner: maintainers
-last_reviewed: 2026-10-02
+last_reviewed: 2026-10-19
phase: "-"
audience: end-user
tags: [voice, microphone, wake-word, speech-recognition, text-to-speech, pipeline, realtime, language]
@@ -31,9 +31,12 @@ reason, act, or speak a reply.
- On macOS, allow **Microphone** access. The Call shortcut also needs
Input Monitoring access, which macOS asks for when you save a shortcut. Other systems use their own audio
and shortcut permissions.
-- Open **API Keys & Providers** and review **Voice engine**. Realtime needs one
- compatible live voice connection. Pipeline needs usable Voice Input, Brain,
- and Voice Output paths, which can be local, hosted, or mixed.
+- Open **API Keys & Providers > Live calls** and review **Voice engine**.
+ **GPT-Live** is the Realtime engine and needs one ready live voice
+ connection. **Pipeline** needs usable Voice Input, Brain, and Voice Output
+ paths, which can be local, hosted, or mixed; the tab lists all three once
+ Pipeline is selected. **Settings > Voice > Realtime voice** is the same
+ choice as a switch.
On a headless computer, native wake detection, desktop shortcuts, microphone,
and speaker output are unavailable. A browser can offer **Start Realtime
diff --git a/docs/product/personalize-and-connect/languages-and-voices.md b/docs/product/personalize-and-connect/languages-and-voices.md
index 53b954e5cd..30327ef212 100644
--- a/docs/product/personalize-and-connect/languages-and-voices.md
+++ b/docs/product/personalize-and-connect/languages-and-voices.md
@@ -8,7 +8,7 @@ order: 3
diataxis: howto
status: active
owner: maintainers
-last_reviewed: 2026-07-30
+last_reviewed: 2026-10-19
phase: "-"
audience: end-user
tags: [languages, voice, speech, settings]
@@ -88,12 +88,12 @@ Read [Dictate Into Any App](dictation) for history and recovery.
## Choose Pipeline or Realtime Voice
-Open **API Keys & Providers** and choose the voice engine:
+Open **API Keys & Providers > Live calls** and choose the **Voice engine**:
| Engine | How it works | Where the voice comes from |
|---|---|---|
-| **Pipeline** | Speech recognition creates text, the Brain writes a reply, and text-to-speech creates audio | The active **Voice Output** provider |
-| **Realtime** | One live provider listens and speaks in the same session | The model and voice selected on that Realtime provider card |
+| **Pipeline** | Speech recognition creates text, the Brain writes a reply, and text-to-speech creates audio | The active **Voice Output** provider, listed on the same tab |
+| **GPT-Live** (Realtime) | One live provider listens and speaks in the same session | The voice selected in the GPT-Live settings |
The engines keep separate choices. Realtime requires a ready Realtime provider;
if no session opens, the app can fall back to Pipeline. Any fallback can change
diff --git a/docs/product/personalize-and-connect/local-ai-providers.md b/docs/product/personalize-and-connect/local-ai-providers.md
index 207d65cec5..d0e6b1a7d9 100644
--- a/docs/product/personalize-and-connect/local-ai-providers.md
+++ b/docs/product/personalize-and-connect/local-ai-providers.md
@@ -8,7 +8,7 @@ order: 7
diataxis: howto
status: active
owner: maintainers
-last_reviewed: 2026-08-09
+last_reviewed: 2026-10-19
phase: "-"
audience: end-user
tags: [providers, local-ai, ollama, speech-recognition, text-to-speech, privacy, self-hosting]
@@ -20,8 +20,9 @@ you control. Make one part local first, then add the others when ready.
## Before You Start
-- Open **API Keys & Providers**; no settings-file editing is needed. Select
- **Pipeline** for local speech because Realtime bypasses its three providers.
+- Open **API Keys & Providers**; no settings-file editing is needed. On the
+ **Live calls** tab, set **Voice engine** to **Pipeline** for local speech,
+ because GPT-Live bypasses the three Pipeline steps.
- Keep the app open during installation and leave extra disk space.
- Treat a model on another computer as self-hosted, not offline. Your text or
audio still crosses the network to that computer.
@@ -104,11 +105,12 @@ VRAM even when the model weights appear to fit.
## Install Local Speech
-1. Select **Pipeline**, open **Voice Input**, and choose Whisper or Nemotron.
+1. Open **API Keys & Providers > Live calls**, set **Voice engine** to
+ **Pipeline**, and choose Whisper or Nemotron under **Voice Input**.
2. Select **Install on this machine**. The app remains usable while it works.
3. Wait until both the engine and model show ready, then select **Test** and
**Set active**.
-4. Open **Voice Output** and repeat those steps for Piper.
+4. Repeat those steps for Piper under **Voice Output** on the same tab.
The card probes the engine and model separately, so incomplete files are not
called ready. A second click joins the same installation. After an error,
@@ -146,7 +148,7 @@ of deleting runtime folders behind the running app.
| Feature | Relationship | Boundary to remember |
|---|---|---|
| **Dictation** | Whisper or Nemotron turns speech into text locally. | Polish and translation have a separate local or cloud choice. |
-| **Voice conversations** | Pipeline combines Voice Input, the Brain, and Voice Output. | Realtime bypasses all three selections. |
+| **Voice conversations** | Pipeline combines Voice Input, the Brain, and Voice Output. | GPT-Live bypasses all three selections. |
| **API Keys & Providers** | Shows installation, readiness, server address, test, and active state. | Making one category local does not change the others. |
| **Privacy and local data** | Local inference reduces data sent to model vendors. | History, connected sources, tools, and LAN servers keep their own storage and network rules. |
@@ -168,7 +170,7 @@ tools are local.
| Self-hosted server is unreachable | Stopped server, wrong address, or blocked network | Restart it, copy its address, select **Save**, and retest. |
| Chat works, but an action or image fails | The model lacks tools or vision | Choose a capable Ollama model or another suitable provider. |
| Replies are very slow | The model is too large for available memory or compute | Choose a smaller Brain, use Nemotron for faster speech, or move the server. |
-| Local speech is active but unused | Realtime or an old Pipeline session is still running | Select Pipeline, end the voice session, and start a new one. |
+| Local speech is active but unused | GPT-Live or an old Pipeline session is still running | Set **Live calls > Voice engine** to **Pipeline**, end the voice session, and start a new one. |
| You still see network use | Another slot, fallback, tool, or wording choice is hosted | Review all active cards and test the exact feature again. |
## Next Steps
diff --git a/docs/product/personalize-and-connect/settings-and-appearance.md b/docs/product/personalize-and-connect/settings-and-appearance.md
index f8699f3aa4..8152796b81 100644
--- a/docs/product/personalize-and-connect/settings-and-appearance.md
+++ b/docs/product/personalize-and-connect/settings-and-appearance.md
@@ -8,7 +8,7 @@ order: 4
diataxis: howto
status: active
owner: maintainers
-last_reviewed: 2026-10-02
+last_reviewed: 2026-10-19
phase: "-"
audience: end-user
tags: [settings, appearance, startup, keyboard-shortcuts, jarvis-bar, sound]
@@ -46,7 +46,7 @@ that have their own guides.
|---|---|---|
| **Languages** | Interface, Voice Recognition Language, and Reply Language | Interface and reply choices apply live. After changing recognition, end any Realtime call and restart Dodaios for Pipeline recognition |
| **App settings** | Launch the app when you sign in | The operating-system startup entry is added or removed immediately |
-| **Realtime voice (browser)** | Pipeline or Realtime voice mode | Saves immediately. An active desktop call reconnects when its mode changes; otherwise the next call uses the choice |
+| **Voice > Realtime voice** | Pipeline or Realtime voice mode | Saves immediately. An active desktop call reconnects when its mode changes; otherwise the next call uses the choice |
| **System Prompt** | The assistant's general style and behavior | On the next message; no restart |
| **Wake Word** | Activation, phrase, spoken language, detection engine, and self-test | Usually live when desktop voice is ready; otherwise on the next voice start |
| **Thinking pause** | How long you may pause before Dodaios takes your turn — one value for Pipeline and Realtime. If you keep talking inside the pause, the words are added to the same request instead of being sent twice | Live with Pipeline running; Realtime uses the value on the next turn (some voice models on the next call) |
@@ -69,9 +69,10 @@ is spoken in German.
### Realtime Voice and Providers
-The **Realtime voice (browser)** switch chooses the voice engine. It does not
-choose the provider, model, or speaking voice. Configure those under
-[Providers and API Keys](providers-and-api-keys). When the optional Realtime
+The **Realtime voice** switch chooses the voice engine; off means Pipeline.
+**API Keys & Providers > Live calls > Voice engine** is the same choice. The
+switch does not choose the provider, model, or speaking voice. Configure
+those under [Providers and API Keys](providers-and-api-keys). When the optional Realtime
engine is installed, the current adapters are OpenAI Realtime and Gemini Live.
Dodaios skips installed Realtime providers that have no usable credential and
@@ -207,7 +208,7 @@ returns to idle.
| A display choice says a restart is required | The new Bar or Mascot surface cannot be created safely during the current run | Finish active missions, select **Restart now**, and check the chosen style after the app returns |
| Restart is refused | One or more Dodaios-Agent missions are still running | Wait for them to finish; force only if stopping them is acceptable |
| **Launch app at login** is unavailable | The current host has no supported graphical login session | Use the desktop app on a supported host; a headless system needs its own service setup |
-| **Realtime voice (browser)** is unavailable | No installed Realtime provider has a usable credential, or this build does not include the optional Realtime engine | Connect OpenAI Realtime or Gemini Live under **API Keys**. If the control stays unavailable, use Pipeline |
+| **Realtime voice** is unavailable | No installed Realtime provider has a usable credential, or this build does not include the optional Realtime engine | Connect OpenAI Realtime or Gemini Live under **API Keys**. If the control stays unavailable, use Pipeline |
| Music keeps playing after you enable muting | The platform backend is unavailable, macOS Automation access was denied, or the media app is unsupported | Accept the macOS Automation prompt when offered. On Linux or for unsupported players, use the operating system or media app controls |
| **Save** stays disabled for a shortcut | The combination is incomplete, reserved, or overlaps another action | Follow the inline message and the on-screen keyboard markers, then choose a distinct combination |
| A macOS feature remains blocked | The operating system has not granted the required access, or the new grant needs an app restart | Use the button on the short message Dodaios shows (**Open System Settings**, **Ask macOS now**, or **Quit and reopen**); [App Permissions](permissions) explains how to start over |
diff --git a/dodaios/ui/web/frontend/src/hooks/useVoiceMode.ts b/dodaios/ui/web/frontend/src/hooks/useVoiceMode.ts
index 628aed0c1b..3288ade272 100644
--- a/dodaios/ui/web/frontend/src/hooks/useVoiceMode.ts
+++ b/dodaios/ui/web/frontend/src/hooks/useVoiceMode.ts
@@ -351,7 +351,21 @@ export function useVoiceMode() {
? q.data?.last_start_error ?? null
: null,
setMode: m.mutate,
+ /** Why the last switch was refused, in the backend's words; null otherwise. */
+ saveError: m.error ? refusalText(m.error) : null,
isLoading: q.isLoading,
isSaving: m.isPending,
};
}
+
+/** The backend answers a refused switch with `{"detail": "..."}`; show the sentence. */
+function refusalText(error: unknown): string {
+ const raw = error instanceof Error ? error.message : String(error);
+ try {
+ const detail = (JSON.parse(raw) as { detail?: unknown }).detail;
+ if (typeof detail === "string" && detail.trim()) return detail;
+ } catch {
+ // Not JSON: the text itself is the reason.
+ }
+ return raw;
+}
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/providers/de.json b/dodaios/ui/web/frontend/src/i18n/locales/providers/de.json
index 9c2dc348d1..73d7464084 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/providers/de.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/providers/de.json
@@ -1,6 +1,6 @@
{
"providers_page": {
- "subtitle": "Live-Gespräche laufen über OpenAI GPT-Live. Die Agenten laufen über jedes Abo und jeden Schlüssel, den du hier einschaltest.",
+ "subtitle": "Live-Gespräche laufen über OpenAI GPT-Live oder, wenn du umschaltest, über die Pipeline. Die Agenten laufen über jedes Abo und jeden Schlüssel, den du hier einschaltest.",
"checking": "Wird geprüft…",
"checked_now": "Gerade geprüft",
"checked_minutes": "Vor {0} Min. geprüft",
@@ -110,6 +110,18 @@
"account_use": "Für neue Terminals nutzen",
"tab_voice": "Live-Gespräche",
"tab_agents": "Agenten",
+ "engine_title": "Sprach-Engine",
+ "engine_live": "GPT-Live",
+ "engine_pipeline": "Pipeline",
+ "engine_live_desc": "Eine Live-Verbindung zu OpenAI GPT-Live hört zu, denkt und spricht.",
+ "engine_pipeline_desc": "Drei getrennte Schritte: Spracheingabe, Brain und Sprachausgabe. Wähle lokale, damit deine Sprache auf diesem Computer bleibt.",
+ "engine_live_setup": "Richte GPT-Live unten ein und speichere, um es für Gespräche zu nutzen.",
+ "engine_next_call": "Eine Änderung gilt ab deinem nächsten Gespräch.",
+ "engine_failed": "Die Sprach-Engine wurde nicht umgestellt: {0}",
+ "pipeline_brain_title": "Brain",
+ "pipeline_brain_desc": "Die Antworten kommen von deinem Standard-Agenten-Anbieter: {0}.",
+ "pipeline_brain_none": "Noch kein Standard-Agenten-Anbieter gewählt.",
+ "pipeline_brain_change": "In Agenten ändern",
"subscriptions_title": "Abos",
"keys_title": "API-Keys",
"authenticated": "Angemeldet",
@@ -128,8 +140,7 @@
"key_missing_short": "Kein Schlüssel",
"key_desc_short": "Ein Schlüssel für alles, was dieser Anbieter macht. Abrechnung pro Nutzung.",
"separate_title": "Eigene Schlüssel",
- "accounts_title": "Mehrere Anmeldungen pro Tool"
-,
+ "accounts_title": "Mehrere Anmeldungen pro Tool",
"agent_providers_title": "Anbieter",
"access_title": "Zugang",
"access_desc": "Nutze dein Abo oder einen API-Schlüssel. Die Agenten laufen nur über den hier gewählten Zugang.",
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/providers/en.json b/dodaios/ui/web/frontend/src/i18n/locales/providers/en.json
index 5503a4922b..e456add50f 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/providers/en.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/providers/en.json
@@ -1,6 +1,6 @@
{
"providers_page": {
- "subtitle": "Live calls run on OpenAI GPT-Live. Agents run on every subscription or key you turn on here.",
+ "subtitle": "Live calls run on OpenAI GPT-Live, or on the Pipeline if you switch to it. Agents run on every subscription or key you turn on here.",
"checking": "Checking…",
"checked_now": "Checked just now",
"checked_minutes": "Checked {0} min ago",
@@ -110,6 +110,18 @@
"account_use": "Use for new terminals",
"tab_voice": "Live calls",
"tab_agents": "Agents",
+ "engine_title": "Voice engine",
+ "engine_live": "GPT-Live",
+ "engine_pipeline": "Pipeline",
+ "engine_live_desc": "One live connection to OpenAI GPT-Live listens, thinks and speaks.",
+ "engine_pipeline_desc": "Three separate steps: voice input, the brain and voice output. Choose local ones to keep your speech on this computer.",
+ "engine_live_setup": "Set up GPT-Live below and save to use it for calls.",
+ "engine_next_call": "A change applies from your next call.",
+ "engine_failed": "The voice engine was not switched: {0}",
+ "pipeline_brain_title": "Brain",
+ "pipeline_brain_desc": "Answers come from your default agent provider: {0}.",
+ "pipeline_brain_none": "No default agent provider is set yet.",
+ "pipeline_brain_change": "Change in Agents",
"subscriptions_title": "Subscriptions",
"keys_title": "API keys",
"authenticated": "Authenticated",
@@ -128,8 +140,7 @@
"key_missing_short": "No key",
"key_desc_short": "One key for everything this provider does. Billed per use.",
"separate_title": "Separate keys",
- "accounts_title": "Several sign-ins per tool"
-,
+ "accounts_title": "Several sign-ins per tool",
"agent_providers_title": "Providers",
"access_title": "Access",
"access_desc": "Use your subscription or an API key. The agents run only on the one picked here.",
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/providers/es.json b/dodaios/ui/web/frontend/src/i18n/locales/providers/es.json
index 9deaf94151..20a79ba2a1 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/providers/es.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/providers/es.json
@@ -1,6 +1,6 @@
{
"providers_page": {
- "subtitle": "Las llamadas en directo funcionan con OpenAI GPT-Live. Los agentes funcionan con cada suscripción o clave que actives aquí.",
+ "subtitle": "Las llamadas en directo funcionan con OpenAI GPT-Live o, si cambias, con la Pipeline. Los agentes funcionan con cada suscripción o clave que actives aquí.",
"checking": "Comprobando…",
"checked_now": "Comprobado ahora",
"checked_minutes": "Comprobado hace {0} min",
@@ -110,6 +110,18 @@
"account_use": "Usar en terminales nuevos",
"tab_voice": "Llamadas en directo",
"tab_agents": "Agentes",
+ "engine_title": "Motor de voz",
+ "engine_live": "GPT-Live",
+ "engine_pipeline": "Pipeline",
+ "engine_live_desc": "Una conexión en directo con OpenAI GPT-Live escucha, piensa y habla.",
+ "engine_pipeline_desc": "Tres pasos separados: entrada de voz, el cerebro y salida de voz. Elige opciones locales para que tu voz no salga de este ordenador.",
+ "engine_live_setup": "Configura GPT-Live abajo y guarda para usarlo en las llamadas.",
+ "engine_next_call": "Un cambio se aplica a partir de tu próxima llamada.",
+ "engine_failed": "No se cambió el motor de voz: {0}",
+ "pipeline_brain_title": "Cerebro",
+ "pipeline_brain_desc": "Las respuestas vienen de tu proveedor de agentes predeterminado: {0}.",
+ "pipeline_brain_none": "Aún no hay un proveedor de agentes predeterminado.",
+ "pipeline_brain_change": "Cambiar en Agentes",
"subscriptions_title": "Suscripciones",
"keys_title": "Claves API",
"authenticated": "Sesión iniciada",
@@ -128,8 +140,7 @@
"key_missing_short": "Sin clave",
"key_desc_short": "Una clave para todo lo que hace este proveedor. Se cobra por uso.",
"separate_title": "Claves propias",
- "accounts_title": "Varias sesiones por herramienta"
-,
+ "accounts_title": "Varias sesiones por herramienta",
"agent_providers_title": "Proveedores",
"access_title": "Acceso",
"access_desc": "Usa tu suscripción o una clave API. Los agentes solo funcionan con el acceso elegido aquí.",
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/providers/pt.json b/dodaios/ui/web/frontend/src/i18n/locales/providers/pt.json
index 51715403a8..4e55368a73 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/providers/pt.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/providers/pt.json
@@ -1,6 +1,6 @@
{
"providers_page": {
- "subtitle": "As chamadas em direto correm no OpenAI GPT-Live. Os agentes correm em todas as subscrições ou chaves que ativares aqui.",
+ "subtitle": "As chamadas em direto correm no OpenAI GPT-Live ou, se mudares, na Pipeline. Os agentes correm em todas as subscrições ou chaves que ativares aqui.",
"checking": "A verificar…",
"checked_now": "Verificado agora mesmo",
"checked_minutes": "Verificado há {0} min",
@@ -110,6 +110,18 @@
"account_use": "Usar para novos terminais",
"tab_voice": "Chamadas em direto",
"tab_agents": "Agentes",
+ "engine_title": "Motor de voz",
+ "engine_live": "GPT-Live",
+ "engine_pipeline": "Pipeline",
+ "engine_live_desc": "Uma ligação em direto ao OpenAI GPT-Live ouve, pensa e fala.",
+ "engine_pipeline_desc": "Três passos separados: entrada de voz, o cérebro e saída de voz. Escolhe opções locais para que a tua voz fique neste computador.",
+ "engine_live_setup": "Configura o GPT-Live abaixo e guarda para o usares nas chamadas.",
+ "engine_next_call": "Uma alteração aplica-se a partir da tua próxima chamada.",
+ "engine_failed": "O motor de voz não foi alterado: {0}",
+ "pipeline_brain_title": "Cérebro",
+ "pipeline_brain_desc": "As respostas vêm do teu fornecedor de agentes predefinido: {0}.",
+ "pipeline_brain_none": "Ainda não há um fornecedor de agentes predefinido.",
+ "pipeline_brain_change": "Alterar em Agentes",
"subscriptions_title": "Subscrições",
"keys_title": "Chaves de API",
"authenticated": "Autenticado",
@@ -128,8 +140,7 @@
"key_missing_short": "Sem chave",
"key_desc_short": "Uma chave para tudo o que este fornecedor faz. Faturada por utilização.",
"separate_title": "Chaves separadas",
- "accounts_title": "Vários inícios de sessão por ferramenta"
-,
+ "accounts_title": "Vários inícios de sessão por ferramenta",
"agent_providers_title": "Fornecedores",
"access_title": "Acesso",
"access_desc": "Usa a tua subscrição ou uma chave de API. Os agentes correm apenas na que escolheres aqui.",
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/providers/zh.json b/dodaios/ui/web/frontend/src/i18n/locales/providers/zh.json
index 6ad337ef5c..8b44aa2b8e 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/providers/zh.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/providers/zh.json
@@ -1,6 +1,6 @@
{
"providers_page": {
- "subtitle": "实时通话运行在 OpenAI GPT-Live 上。智能体会使用你在这里开启的所有订阅或密钥。",
+ "subtitle": "实时通话默认运行在 OpenAI GPT-Live 上,也可以切换到 Pipeline。智能体会使用你在这里开启的所有订阅或密钥。",
"checking": "正在检查…",
"checked_now": "刚刚检查过",
"checked_minutes": "{0} 分钟前检查过",
@@ -110,6 +110,18 @@
"account_use": "用于新终端",
"tab_voice": "实时通话",
"tab_agents": "智能体",
+ "engine_title": "语音引擎",
+ "engine_live": "GPT-Live",
+ "engine_pipeline": "Pipeline",
+ "engine_live_desc": "通过一条与 OpenAI GPT-Live 的实时连接来聆听、思考和说话。",
+ "engine_pipeline_desc": "分为三个独立步骤:语音输入、大脑和语音输出。选择本地选项,语音就会留在这台电脑上。",
+ "engine_live_setup": "在下方设置 GPT-Live 并保存后即可用于通话。",
+ "engine_next_call": "更改从下一次通话开始生效。",
+ "engine_failed": "语音引擎未切换:{0}",
+ "pipeline_brain_title": "大脑",
+ "pipeline_brain_desc": "回答来自你的默认智能体提供商:{0}。",
+ "pipeline_brain_none": "尚未设置默认智能体提供商。",
+ "pipeline_brain_change": "在智能体中更改",
"subscriptions_title": "订阅",
"keys_title": "API 密钥",
"authenticated": "已认证",
diff --git a/dodaios/ui/web/frontend/src/views/ApiKeysView.providers.test.tsx b/dodaios/ui/web/frontend/src/views/ApiKeysView.providers.test.tsx
index 248c1ade70..6c96c36d94 100644
--- a/dodaios/ui/web/frontend/src/views/ApiKeysView.providers.test.tsx
+++ b/dodaios/ui/web/frontend/src/views/ApiKeysView.providers.test.tsx
@@ -7,12 +7,18 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { cleanup, fireEvent, render, screen, waitFor, within } from "@testing-library/react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+const voiceMode = vi.hoisted(() => ({
+ mode: "realtime",
+ realtimeAvailable: true,
+ setMode: (() => undefined) as (mode: string) => void,
+}));
vi.mock("@/hooks/useVoiceMode", () => ({
useVoiceMode: () => ({
- mode: "realtime",
- realtimeAvailable: true,
+ mode: voiceMode.mode,
+ realtimeAvailable: voiceMode.realtimeAvailable,
statusKnown: true,
- setMode: vi.fn(),
+ setMode: voiceMode.setMode,
+ saveError: null,
isLoading: false,
isSaving: false,
sessionActive: false,
@@ -97,6 +103,9 @@ let calls: { url: string; method: string; body: unknown }[] = [];
let prefs: { disabled: string[]; api_only: string[]; hidden_models: Record<string, string[]> };
beforeEach(() => {
+ voiceMode.mode = "realtime";
+ voiceMode.realtimeAvailable = true;
+ voiceMode.setMode = vi.fn();
calls = [];
prefs = { disabled: [], api_only: [], hidden_models: {} };
_resetProvidersCacheForTests();
@@ -170,6 +179,37 @@ describe("ApiKeysView — Live calls", () => {
expect(screen.getAllByRole("tab").map((tab) => tab.textContent)).toEqual(["Agents", "Live calls"]);
});
+ it("offers the Pipeline as the other voice engine", async () => {
+ renderPage();
+ const engine = await screen.findByTestId("voice-engine-switch");
+ expect(within(engine).getByRole("radio", { name: "GPT-Live" }).getAttribute("aria-checked")).toBe("true");
+ fireEvent.click(within(engine).getByRole("radio", { name: "Pipeline" }));
+ expect(voiceMode.setMode).toHaveBeenCalledWith("pipeline");
+ });
+
+ it("shows voice input, the brain and voice output while the Pipeline is the engine", async () => {
+ voiceMode.mode = "pipeline";
+ renderPage();
+ const pipeline = await screen.findByTestId("voice-pipeline");
+ expect(screen.queryByTestId("live-profile")).toBeNull();
+ expect(within(pipeline).getByText("Voice Input (STT)")).toBeTruthy();
+ expect(within(pipeline).getByText("Voice Output (TTS)")).toBeTruthy();
+ const brain = within(pipeline).getByTestId("voice-pipeline-brain");
+ fireEvent.click(within(brain).getByRole("button", { name: "Change in Agents" }));
+ expect(await screen.findByTestId("apikeys-agents")).toBeTruthy();
+ });
+
+ it("shows GPT-Live's settings without switching while no live provider is ready", async () => {
+ voiceMode.mode = "pipeline";
+ voiceMode.realtimeAvailable = false;
+ renderPage();
+ const engine = await screen.findByTestId("voice-engine-switch");
+ fireEvent.click(within(engine).getByRole("radio", { name: "GPT-Live" }));
+ expect(await screen.findByTestId("live-profile")).toBeTruthy();
+ expect(voiceMode.setMode).not.toHaveBeenCalled();
+ expect(screen.getByTestId("voice-engine").textContent).toContain("Set up GPT-Live below");
+ });
+
it("opens on Agents the first time", async () => {
localStorage.removeItem("jarvis.apikeys.tab");
renderPage();
diff --git a/dodaios/ui/web/frontend/src/views/ApiKeysView.tsx b/dodaios/ui/web/frontend/src/views/ApiKeysView.tsx
index 77f0d39744..97bde2b825 100644
--- a/dodaios/ui/web/frontend/src/views/ApiKeysView.tsx
+++ b/dodaios/ui/web/frontend/src/views/ApiKeysView.tsx
@@ -6,6 +6,7 @@ import { Button } from "@/components/ui/button";
import { AgentsTab } from "@/views/apikeys/AgentsTab";
import { KeyField } from "@/views/apikeys/KeyField";
import { SettingsGroup } from "@/views/apikeys/settingsUi";
+import { PipelinePane, useVoiceEngineView, VoiceEngineSwitch } from "@/views/apikeys/VoiceEngine";
import { useProviders, useSectionHealth } from "@/hooks/useProviders";
import { APIKEYS_TAB_EVENT, takeRequestedApiKeysTab } from "@/lib/apiKeysTab";
import { useProviderFamilies } from "@/lib/providerFamilies";
@@ -51,7 +52,8 @@ function initialTab(): Tab {
*
* - Live calls: the live voice runs on OpenAI GPT-Live — paid with the
* ChatGPT subscription or one OpenAI key — with its voice and the thinking
- * model that answers with tools;
+ * model that answers with tools; or, switched to Pipeline, as three steps
+ * (voice input, the brain, voice output) that can each run locally;
* - Agents: every company the assistant's agents can run on, any number of
* them on at once, each reached by its subscription or its API key.
*/
@@ -121,7 +123,7 @@ export function ApiKeysView() {
className="min-h-0 flex-1 overflow-y-auto scrollbar-jarvis px-8 pb-10 pt-6"
>
<div key={tab} role="tabpanel" id="apikeys-panel" aria-labelledby={`apikeys-tab-${tab}`} className="profile-rise w-full">
- {tab === "voice" && <VoiceTab data={families} onSaved={refetch} />}
+ {tab === "voice" && <VoiceTab data={families} onSaved={refetch} onOpenAgents={() => choose("agents")} />}
{tab === "agents" &&
(families.error === "restart_required" ? (
<RestartNeeded />
@@ -173,29 +175,45 @@ function TabSwitch({ value, onChange }: { value: Tab; onChange: (tab: Tab) => vo
}
/**
- * Live calls run on OpenAI GPT-Live, the one live speech-to-speech model the
- * assistant runs — so the tab is that one provider's settings pane: how it is
- * paid for, its voice and the thinking model that answers with tools.
+ * Live calls run on OpenAI GPT-Live by default: one live speech-to-speech
+ * connection, so that half of the tab is that provider's settings pane — how
+ * it is paid for, its voice and the thinking model that answers with tools.
+ * The engine switch above it turns calls over to the Pipeline instead, whose
+ * steps can run on this computer.
*/
-function VoiceTab({ data, onSaved }: { data: ReturnType<typeof useProviderFamilies>; onSaved: () => void }) {
+function VoiceTab({
+ data,
+ onSaved,
+ onOpenAgents,
+}: {
+ data: ReturnType<typeof useProviderFamilies>;
+ onSaved: () => void;
+ onOpenAgents: () => void;
+}) {
const openai = data.families?.find((family) => family.id === "openai");
+ const engine = useVoiceEngineView();
return (
<div data-testid="apikeys-voice" className="mx-auto w-full max-w-3xl">
- <SettingsGroup divided={false} className="p-4">
- <LiveProfile
- onSaved={onSaved}
- keyField={
- <KeyField
- slot={openai?.key_slot ?? "openai_api_key"}
- present={openai?.key_present ?? false}
- providerLabel="OpenAI"
- dashboardUrl={openai?.dashboard_url}
- onChanged={() => void data.reload()}
- testId="voice-key"
- />
- }
- />
- </SettingsGroup>
+ <VoiceEngineSwitch engine={engine} />
+ {engine.view === "pipeline" ? (
+ <PipelinePane onOpenAgents={onOpenAgents} />
+ ) : (
+ <SettingsGroup divided={false} className="p-4">
+ <LiveProfile
+ onSaved={onSaved}
+ keyField={
+ <KeyField
+ slot={openai?.key_slot ?? "openai_api_key"}
+ present={openai?.key_present ?? false}
+ providerLabel="OpenAI"
+ dashboardUrl={openai?.dashboard_url}
+ onChanged={() => void data.reload()}
+ testId="voice-key"
+ />
+ }
+ />
+ </SettingsGroup>
+ )}
</div>
);
}
diff --git a/dodaios/ui/web/frontend/src/views/apikeys/VoiceEngine.tsx b/dodaios/ui/web/frontend/src/views/apikeys/VoiceEngine.tsx
new file mode 100644
index 0000000000..8585998153
--- /dev/null
+++ b/dodaios/ui/web/frontend/src/views/apikeys/VoiceEngine.tsx
@@ -0,0 +1,160 @@
+import { useEffect, useState } from "react";
+import { Brain } from "lucide-react";
+
+import { Button } from "@/components/ui/button";
+import {
+ makeProviderCategories,
+ ProviderCategory,
+ useTierHealth,
+} from "@/components/providers/ProviderTierSection";
+import { useProviders } from "@/hooks/useProviders";
+import { useVoiceMode } from "@/hooks/useVoiceMode";
+import { useT } from "@/i18n";
+import { Segmented, SettingsGroup, SettingsRow } from "@/views/apikeys/settingsUi";
+
+/** What the Live calls tab shows: GPT-Live's settings or the three pipeline steps. */
+export type VoiceEngineView = "live" | "pipeline";
+
+/**
+ * The engine choice at the top of the Live calls tab.
+ *
+ * It writes `[voice].mode` through the same route as the Settings switch.
+ * Picking Pipeline always works. Picking GPT-Live works once a live provider
+ * is ready; before that the tab only shows GPT-Live's settings, and saving
+ * them makes GPT-Live the engine (the backend sets the mode on save).
+ */
+export function useVoiceEngineView() {
+ const voice = useVoiceMode();
+ const configured: VoiceEngineView = voice.mode === "pipeline" ? "pipeline" : "live";
+ // Only set while GPT-Live is shown but not yet usable.
+ const [preview, setPreview] = useState<VoiceEngineView | null>(null);
+ useEffect(() => setPreview(null), [configured]);
+ const view = preview ?? configured;
+
+ const choose = (next: VoiceEngineView) => {
+ if (next === configured) {
+ setPreview(null);
+ return;
+ }
+ if (next === "pipeline") {
+ setPreview(null);
+ voice.setMode("pipeline");
+ return;
+ }
+ if (voice.realtimeAvailable) {
+ setPreview(null);
+ voice.setMode("realtime");
+ } else {
+ setPreview("live");
+ }
+ };
+
+ return {
+ view,
+ configured,
+ choose,
+ busy: voice.isLoading || voice.isSaving,
+ error: voice.saveError,
+ };
+}
+
+export function VoiceEngineSwitch({ engine }: { engine: ReturnType<typeof useVoiceEngineView> }) {
+ const t = useT();
+ const pendingSetup = engine.view === "live" && engine.configured !== "live";
+ return (
+ <SettingsGroup data-testid="voice-engine" className="mb-6">
+ <SettingsRow
+ title={t("providers_page.engine_title")}
+ description={
+ engine.view === "pipeline"
+ ? t("providers_page.engine_pipeline_desc")
+ : t("providers_page.engine_live_desc")
+ }
+ status={
+ engine.error ? (
+ <span role="alert" className="text-destructive">
+ {t("providers_page.engine_failed").replace("{0}", engine.error)}
+ </span>
+ ) : pendingSetup ? (
+ t("providers_page.engine_live_setup")
+ ) : (
+ t("providers_page.engine_next_call")
+ )
+ }
+ control={
+ <Segmented<VoiceEngineView>
+ testId="voice-engine-switch"
+ label={t("providers_page.engine_title")}
+ value={engine.view}
+ disabled={engine.busy}
+ onChange={engine.choose}
+ options={[
+ { value: "live", label: t("providers_page.engine_live") },
+ { value: "pipeline", label: t("providers_page.engine_pipeline") },
+ ]}
+ />
+ }
+ />
+ </SettingsGroup>
+ );
+}
+
+/**
+ * The pipeline's three steps: voice input, the brain, voice output. Input and
+ * output are the same provider lists the rest of the app uses; the brain is
+ * the default agent provider, chosen on the Agents tab.
+ */
+export function PipelinePane({ onOpenAgents }: { onOpenAgents: () => void }) {
+ const t = useT();
+ const { providers, loading, error, refetch, setActiveOptimistic } = useProviders();
+ const health = useTierHealth(providers);
+ const categories = makeProviderCategories(t);
+ const brain = providers.find((provider) => provider.tier === "brain" && provider.active);
+
+ return (
+ <div data-testid="voice-pipeline" className="flex flex-col gap-group">
+ <ProviderCategory
+ meta={categories.stt}
+ tier="stt"
+ providers={providers}
+ loading={loading}
+ error={error}
+ onChanged={refetch}
+ onActivateOptimistic={setActiveOptimistic}
+ health={health.stt}
+ />
+
+ <SettingsGroup data-testid="voice-pipeline-brain">
+ <SettingsRow
+ title={
+ <>
+ <Brain aria-hidden="true" className="h-4 w-4 text-muted-foreground" />
+ {t("providers_page.pipeline_brain_title")}
+ </>
+ }
+ description={
+ brain
+ ? t("providers_page.pipeline_brain_desc").replace("{0}", brain.label)
+ : t("providers_page.pipeline_brain_none")
+ }
+ control={
+ <Button size="sm" variant="outline" onClick={onOpenAgents}>
+ {t("providers_page.pipeline_brain_change")}
+ </Button>
+ }
+ />
+ </SettingsGroup>
+
+ <ProviderCategory
+ meta={categories.tts}
+ tier="tts"
+ providers={providers}
+ loading={loading}
+ error={error}
+ onChanged={refetch}
+ onActivateOptimistic={setActiveOptimistic}
+ health={health.tts}
+ />
+ </div>
+ );
+}