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.

fix(realtime): speak progress lines in the live session voice (BUG-155)

Harald90ab8de1e36b
diff --git a/docs/BUGS.md b/docs/BUGS.md
index aff70ad6bf..9fbf4c2c01 100644
--- a/docs/BUGS.md
+++ b/docs/BUGS.md
@@ -10832,8 +10832,9 @@ surface path did not.
`_active_voice`, so the live socket and the surface sibling name the
same voice. A per-card pin still overrides it.
- `build_realtime_surface_tts(..., session_voice=)` takes the live
- session's voice first. The desktop `error_spoken` path passes the hint
- into the builder, not only into `synthesize`.
+ session's voice first. `_surface_speech_message` already carries
+ `_active_voice` as a synthesize hint; the builder default now matches
+ that name instead of falling through to Charon.
**Class rule.** A progress / fallback line mid-call is not a second
assistant. If the live model cannot speak it, the surface sibling must
diff --git a/jarvis/brain/model_catalog.py b/jarvis/brain/model_catalog.py
index 010f5e2bd6..fd9dcc51c5 100644
--- a/jarvis/brain/model_catalog.py
+++ b/jarvis/brain/model_catalog.py
@@ -475,8 +475,8 @@ TTS_CATALOG: dict[str, tuple[str, list[ModelInfo]]] = {
}
# Realtime catalogs — REALTIME_MODELS + REALTIME_VOICES, keyed by realtime
-# provider id (``codex-subscription-realtime`` / ``openai-realtime`` /
-# ``gemini-live``).
+# provider id (``openai-realtime`` / ``gemini-live`` / ``vertex-live`` /
+# ``local-realtime``).
# Realtime needs BOTH a
# model AND a voice selection per provider (unlike every other picker, which
# serves ONE selection), so these two dicts are looked up directly by the
@@ -536,6 +536,18 @@ REALTIME_MODELS: dict[str, list[ModelInfo]] = {
),
]
),
+ # Vertex publishes its OWN Live model ids — the AI Studio ids above 404
+ # on a Cloud project (VertexLiveProvider.default_model, live 2026-08-17).
+ # Only the verified adapter default is listed; a per-card pin still
+ # overrides it.
+ "vertex-live": _curated(
+ [
+ (
+ "gemini-live-2.5-flash-native-audio",
+ "Gemini 2.5 Flash Native Audio (default)",
+ ),
+ ]
+ ),
# grok-realtime (xAI Voice Agent API) was REMOVED 2026-07-16: the xAI
# server drops the session contract after any response cancel, ignores
# the configured VAD silence window, swallows response.done, and spams
@@ -546,8 +558,9 @@ REALTIME_MODELS: dict[str, list[ModelInfo]] = {
# Realtime voice catalogs — stable prebuilt-voice names (curated, not live).
# openai-realtime: verified 2026-07-10 against the official Realtime
# conversations guide — ten current voices, including Marin and Cedar.
-# gemini-live: verified 2026-07-10 against the Live API capabilities guide,
-# which now permits the complete 30-voice Gemini prebuilt roster.
+# gemini-live / vertex-live: verified 2026-07-10 against the Live API
+# capabilities guide, which now permits the complete 30-voice Gemini
+# prebuilt roster. Same names on both sockets (AI Studio vs Cloud project).
REALTIME_VOICES: dict[str, list[ModelInfo]] = {
# A self-hosted server ships whatever voices its operator installed, and a
# list of OpenAI voice names would be a guess the server then rejects. One
@@ -602,9 +615,8 @@ REALTIME_VOICES: dict[str, list[ModelInfo]] = {
"Sulafat",
]
),
- # Live roster verified through xAI's authenticated /v1/tts/voices endpoint.
- # Eve leads because it is xAI's current Voice Agent default.
}
+REALTIME_VOICES["vertex-live"] = REALTIME_VOICES["gemini-live"]
# STT model catalogs (the ``[stt] model`` is a single global value).
diff --git a/jarvis/plugins/realtime/gemini_live.py b/jarvis/plugins/realtime/gemini_live.py
index dd57f87b91..bc729462da 100644
--- a/jarvis/plugins/realtime/gemini_live.py
+++ b/jarvis/plugins/realtime/gemini_live.py
@@ -838,6 +838,13 @@ class GeminiLiveProvider:
#: module constant, because the AI Studio and Vertex catalogues do NOT share
#: their Live ids — see VertexLiveProvider.
default_model = _MODEL
+ #: Prebuilt voice used when the card pins none. Always sent as
+ #: ``PrebuiltVoiceConfig`` so the Live socket and the same-family
+ #: surface TTS share one identity. Google's unpinned native-audio
+ #: default is undocumented; leaving the field empty made every
+ #: progress / fallback line speak Charon (BUG-155). Kore is the
+ #: current Live API example voice. A per-card pin still overrides it.
+ default_voice = "Kore"
# Optional provider capability consumed by the shared session fallback.
# Every adapter that draws from the same account quota must expose the
# same value so a terminal billing/auth failure is not retried through an
@@ -905,7 +912,15 @@ class GeminiLiveProvider:
from google.genai import types # lazy (AP-26)
client = await self._build_client()
- voice = str(getattr(cfg, "voice", "") or "").strip()
+ voice = str(getattr(cfg, "voice", "") or "").strip() or str(
+ getattr(self, "default_voice", "") or ""
+ ).strip()
+ if not str(getattr(cfg, "voice", "") or "").strip() and voice:
+ log.info(
+ "%s: no card voice pinned; using adapter default %r",
+ self.name,
+ voice,
+ )
speech_config: dict[str, Any] = {}
if voice:
speech_config["voice_config"] = types.VoiceConfig(
diff --git a/jarvis/plugins/tts/__init__.py b/jarvis/plugins/tts/__init__.py
index d6b4fd0085..698ba813b8 100644
--- a/jarvis/plugins/tts/__init__.py
+++ b/jarvis/plugins/tts/__init__.py
@@ -304,17 +304,27 @@ _REALTIME_SURFACE_TTS_FAMILY: dict[str, str] = {
}
-def build_realtime_surface_tts(cfg: Any, realtime_provider: str) -> Any | None:
+def build_realtime_surface_tts(
+ cfg: Any,
+ realtime_provider: str,
+ *,
+ session_voice: str = "",
+) -> Any | None:
"""TTS for re-rendering a REALTIME turn locally (the surface fallback).
STRICT mode separation (maintainer mandate 2026-07-17): the emergency
voice is a TTS of the SAME provider family as the active realtime
session — keyed through the realtime credential slots
(``PROVIDER_SECRET_CANDIDATES[<realtime id>]``, dedicated realtime slot
- first) and speaking the session's configured voice. Realtime and
+ first) and speaking the session's live voice. Realtime and
pipeline are independent modes: each must work with only its own keys,
so the pipeline ``[tts]`` chain is NEVER a candidate here.
+ ``session_voice`` is the voice the live socket is actually speaking
+ (the card pin, else the adapter default). It wins over the config
+ field so a progress line cannot fall through to Charon while the
+ call is using Kore (BUG-155).
+
Returns ``None`` when the realtime family has no TTS sibling or no
usable key — the caller then keeps the turn text-only with an honest
log instead of borrowing the pipeline voice. Never raises.
@@ -349,7 +359,18 @@ def build_realtime_surface_tts(cfg: Any, realtime_provider: str) -> Any | None:
provider_cfg = (
providers.get(provider_id) if isinstance(providers, dict) else None
)
- session_voice = str(getattr(provider_cfg, "voice", "") or "").strip()
+ config_voice = str(getattr(provider_cfg, "voice", "") or "").strip()
+ mode_voice = ""
+ try:
+ from jarvis.brain.modes import active_voice
+
+ mode_voice = str(active_voice() or "").strip()
+ except Exception as exc: # noqa: BLE001 — a mode voice never blocks the fallback
+ log.debug("Mode voice not applied to the realtime surface TTS: %s", exc)
+ mode_voice = ""
+ session_voice = (
+ str(session_voice or "").strip() or mode_voice or config_voice
+ )
tts_cfg = getattr(cfg, "tts", None)
if family in {"gemini-flash-tts", "vertex-tts"}:
diff --git a/jarvis/ui/web/provider_routes.py b/jarvis/ui/web/provider_routes.py
index 1989626d57..8f14137ce0 100644
--- a/jarvis/ui/web/provider_routes.py
+++ b/jarvis/ui/web/provider_routes.py
@@ -3252,8 +3252,8 @@ async def set_cu_model(provider_id: str, body: CuModelBody, request: Request) ->
# ── GET/PUT /providers/{id}/realtime-options ───────────────────────────────
# Selectable Realtime model + voice, per realtime provider (openai-realtime /
-# gemini-live). Realtime needs BOTH per provider, so this is a small dedicated
-# endpoint rather than reusing GET/PUT /providers/{id}/model.
+# gemini-live / vertex-live). Realtime needs BOTH per provider, so this is a
+# small dedicated endpoint rather than reusing GET/PUT /providers/{id}/model.
def _require_realtime_provider(provider_id: str) -> ProviderSpec:
@@ -3465,6 +3465,36 @@ async def _gemini_live_voice_sample(
return bytes(pcm), sample_rate
+async def _vertex_live_voice_sample(
+ api_key: str, *, model: str, voice: str, text: str, language: str
+) -> tuple[bytes, int]:
+ """Sample a Vertex Live voice via the Vertex TTS sibling.
+
+ Same 30-voice roster as Gemini Live; the Cloud project path (ADC or
+ Vertex key) must speak it, never the AI Studio key (provider parity,
+ BUG-155). ``model`` is the LIVE model and is unused here.
+ """
+ del model
+ from jarvis.plugins.tts.gemini_flash_tts import GEMINI_TTS_SAMPLE_RATE, VertexTTS
+
+ tts = VertexTTS(
+ api_key=api_key or None,
+ chunk_by_sentence=False,
+ allow_sapi5_fallback=False,
+ )
+ pcm = bytearray()
+ sample_rate = GEMINI_TTS_SAMPLE_RATE
+ async for chunk in tts.synthesize(
+ text, voice=voice, language_code=_REALTIME_PREVIEW_LANG_CODES.get(language)
+ ):
+ pcm += bytes(chunk.pcm)
+ sample_rate = chunk.sample_rate
+ return bytes(pcm), sample_rate
+
+
+_vertex_live_voice_sample.requires_api_key = False # type: ignore[attr-defined]
+
+
async def _openai_realtime_voice_sample(
api_key: str, *, model: str, voice: str, text: str, language: str
) -> tuple[bytes, int]:
@@ -3559,6 +3589,7 @@ async def _openai_realtime_voice_sample(
# ``preview_available`` keeps the UI from rendering a button that cannot work.
_REALTIME_PREVIEW_SAMPLERS: dict[str, Any] = {
"gemini-live": _gemini_live_voice_sample,
+ "vertex-live": _vertex_live_voice_sample,
"openai-realtime": _openai_realtime_voice_sample,
}
@@ -3573,7 +3604,9 @@ class RealtimeVoicePreviewBody(BaseModel):
@router.post("/providers/{provider_id}/realtime-voice-preview")
-async def realtime_voice_preview(provider_id: str, body: RealtimeVoicePreviewBody) -> Response:
+async def realtime_voice_preview(
+ provider_id: str, body: RealtimeVoicePreviewBody, request: Request
+) -> Response:
"""Speak a SHORT sample with one of a realtime provider's voices.
Returns ``audio/wav`` (24 kHz mono s16le in a WAV container) so the voice
@@ -3582,7 +3615,7 @@ async def realtime_voice_preview(provider_id: str, body: RealtimeVoicePreviewBod
for THIS provider. Any failure (no key / quota / transport) is a clean
4xx/5xx JSON error the picker can toast — never a page-breaking 500.
"""
- _require_realtime_provider(provider_id)
+ spec = _require_realtime_provider(provider_id)
from jarvis.brain.model_catalog import REALTIME_MODELS, REALTIME_VOICES
voice = body.voice.strip()
@@ -3609,12 +3642,22 @@ async def realtime_voice_preview(provider_id: str, body: RealtimeVoicePreviewBod
)
requires_api_key = bool(getattr(sampler, "requires_api_key", True))
- api_key = cfg_mod.get_provider_secret(provider_id) if requires_api_key else ""
- if requires_api_key and not api_key:
+ api_key = cfg_mod.get_provider_secret(provider_id) or ""
+ if requires_api_key:
+ if not api_key:
+ raise HTTPException(
+ status_code=409,
+ detail=(
+ f"Provider '{provider_id}' has no configured credentials. "
+ "Add its API key first."
+ ),
+ )
+ elif not await _provider_credential_present_async(spec, request):
raise HTTPException(
status_code=409,
detail=(
- f"Provider '{provider_id}' has no configured credentials. Add its API key first."
+ f"Provider '{provider_id}' has no configured credentials. "
+ "Connect or configure this provider first."
),
)
diff --git a/tests/unit/brain/test_current_model_catalogs.py b/tests/unit/brain/test_current_model_catalogs.py
index 40d7846c78..c565cdea90 100644
--- a/tests/unit/brain/test_current_model_catalogs.py
+++ b/tests/unit/brain/test_current_model_catalogs.py
@@ -155,6 +155,10 @@ def test_current_realtime_models_and_voices() -> None:
"gemini-2.5-flash-native-audio-preview-12-2025",
} == _ids(REALTIME_MODELS["gemini-live"])
assert len(_ids(REALTIME_VOICES["gemini-live"])) == 30
+ assert _ids(REALTIME_MODELS["vertex-live"]) == {
+ "gemini-live-2.5-flash-native-audio",
+ }
+ assert _ids(REALTIME_VOICES["vertex-live"]) == _ids(REALTIME_VOICES["gemini-live"])
# grok-realtime was removed 2026-07-16 (BUG-064 deaf-session wedge);
# neither catalog may resurrect it.
assert "grok-realtime" not in REALTIME_MODELS
@@ -173,6 +177,7 @@ def test_gemini_voice_roster_is_identical_across_runtime_and_pickers() -> None:
assert len(GEMINI_VOICES) == 30
assert set(GEMINI_VOICES) == picker == realtime == allowed
+ assert _ids(REALTIME_VOICES["vertex-live"]) == realtime
def test_xai_voice_roster_is_identical_across_runtime_and_picker() -> None:
diff --git a/tests/unit/brain/test_model_catalog.py b/tests/unit/brain/test_model_catalog.py
index ec8010c966..37fa1acbe3 100644
--- a/tests/unit/brain/test_model_catalog.py
+++ b/tests/unit/brain/test_model_catalog.py
@@ -821,6 +821,15 @@ class TestRealtimeCatalog:
assert ids[0] == "gemini-3.1-flash-live-preview"
assert len(ids) == len(set(ids))
+ def test_vertex_live_models_lead_with_the_hardcoded_default(self) -> None:
+ from jarvis.brain.model_catalog import REALTIME_MODELS
+ from jarvis.plugins.realtime.gemini_live import VertexLiveProvider
+
+ ids = [m.id for m in REALTIME_MODELS["vertex-live"]]
+ assert ids[0] == VertexLiveProvider.default_model
+ assert ids[0] == "gemini-live-2.5-flash-native-audio"
+ assert len(ids) == len(set(ids))
+
def test_openai_realtime_voices_match_the_ga_voice_set(self) -> None:
from jarvis.brain.model_catalog import REALTIME_VOICES
@@ -854,6 +863,17 @@ class TestRealtimeCatalog:
"Zephyr",
"Sulafat",
} <= ids
+ assert REALTIME_VOICES["vertex-live"] == REALTIME_VOICES["gemini-live"]
+
+ def test_every_realtime_card_has_a_voice_catalog(self) -> None:
+ """BUG-155: vertex-live had no catalog, so the picker was empty and
+ every surface-TTS progress line fell through to Charon."""
+ from jarvis.brain.model_catalog import REALTIME_MODELS, REALTIME_VOICES
+ from jarvis.ui.web.provider_spec import PROVIDERS
+
+ realtime_ids = {spec.id for spec in PROVIDERS if spec.tier == "realtime"}
+ assert realtime_ids <= set(REALTIME_VOICES)
+ assert realtime_ids <= set(REALTIME_MODELS)
def test_realtime_catalogs_are_not_in_the_single_selection_catalog(self) -> None:
# Realtime is served by its own endpoint (GET/PUT /realtime-options),
@@ -862,4 +882,5 @@ class TestRealtimeCatalog:
# single-selection response that can't express model+voice together).
assert catalog_spec("openai-realtime") is None
assert catalog_spec("gemini-live") is None
+ assert catalog_spec("vertex-live") is None
assert catalog_spec("codex-subscription-realtime") is None
diff --git a/tests/unit/brain/test_vertex_family_parity.py b/tests/unit/brain/test_vertex_family_parity.py
index 17c5bb66e7..89d62a424e 100644
--- a/tests/unit/brain/test_vertex_family_parity.py
+++ b/tests/unit/brain/test_vertex_family_parity.py
@@ -80,9 +80,19 @@ def test_every_tier_has_a_selectable_card(tier: str, provider_id: str) -> None:
@pytest.mark.parametrize(("tier", "provider_id"), sorted(VERTEX_IDS_BY_TIER.items()))
def test_every_card_has_a_picker_catalog(tier: str, provider_id: str) -> None:
- """Realtime has no picker; the other three would 400 without a catalog."""
+ """Realtime uses the dedicated /realtime-options catalog; the other three
+ would 400 without a catalog_spec entry."""
if tier == "realtime":
- pytest.skip("the realtime tier has no model/voice picker")
+ from jarvis.brain.model_catalog import REALTIME_MODELS, REALTIME_VOICES
+
+ assert REALTIME_MODELS.get(provider_id), (
+ f"{provider_id!r} has no REALTIME_MODELS entry — the picker is empty"
+ )
+ assert REALTIME_VOICES.get(provider_id), (
+ f"{provider_id!r} has no REALTIME_VOICES entry — progress lines "
+ "cannot match the live session voice"
+ )
+ return
spec = catalog_spec(provider_id)
assert spec is not None and spec.tier == tier
assert spec.curated, f"{provider_id!r} would open an empty picker"
@@ -230,6 +240,7 @@ def test_realtime_declares_a_distinct_credential_family() -> None:
assert VertexLiveProvider.credential_family != GeminiLiveProvider.credential_family
assert VertexLiveProvider.supports_realtime is True
assert issubclass(VertexLiveProvider, GeminiLiveProvider)
+ assert VertexLiveProvider.default_voice == GeminiLiveProvider.default_voice == "Kore"
def test_realtime_is_eligible_on_a_keyless_cloud_project(
diff --git a/tests/unit/plugins/tts/test_realtime_surface_tts.py b/tests/unit/plugins/tts/test_realtime_surface_tts.py
index 5cc4a03e06..09e8e73de7 100644
--- a/tests/unit/plugins/tts/test_realtime_surface_tts.py
+++ b/tests/unit/plugins/tts/test_realtime_surface_tts.py
@@ -205,6 +205,18 @@ def test_vertex_live_without_any_credential_yields_no_surface_tts(
assert build_realtime_surface_tts(_cfg(), "vertex-live") is None
+def test_session_voice_override_wins_over_empty_config() -> None:
+ """BUG-155: the live socket's voice, not the empty card pin, must speak
+ the progress line. An empty [brain.providers.vertex-live].voice used to
+ hard-default the sibling to Charon."""
+ with override_provider_secrets({"vertex-live": "rt-vertex-key"}):
+ tts = build_realtime_surface_tts(
+ _cfg(voice=""), "vertex-live", session_voice="Kore"
+ )
+ assert isinstance(tts, VertexTTS)
+ assert tts._default_voice == "Kore"
+
+
def test_keyless_realtime_provider_yields_no_surface_tts() -> None:
with override_provider_secrets({"gemini-live": None}):
assert build_realtime_surface_tts(_cfg(), "gemini-live") is None
diff --git a/tests/unit/realtime/test_gemini_live.py b/tests/unit/realtime/test_gemini_live.py
index 2cc8790d48..2aec01a35f 100644
--- a/tests/unit/realtime/test_gemini_live.py
+++ b/tests/unit/realtime/test_gemini_live.py
@@ -718,6 +718,26 @@ async def test_an_sdk_without_the_enum_still_opens_a_session(
await session.close()
+async def test_open_session_pins_the_adapter_default_voice_when_unset(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ """BUG-155: an empty card pin used to omit voice_config, so the Live
+ socket used Google's undocumented default while surface TTS spoke
+ Charon. The adapter default is always sent so both paths share it."""
+ holder = _patch_genai_client(monkeypatch)
+ session = await GeminiLiveProvider(api_key="test-key").open_session(
+ RealtimeSessionConfig()
+ )
+ _selected, config = holder["client"].aio.live.connect_calls[0]
+ assert (
+ config.speech_config.voice_config.prebuilt_voice_config.voice_name
+ == GeminiLiveProvider.default_voice
+ == "Kore"
+ )
+ await session.close()
+
+
@pytest.mark.asyncio
async def test_open_session_uses_current_default_model(
monkeypatch: pytest.MonkeyPatch,
diff --git a/tests/unit/realtime/test_session.py b/tests/unit/realtime/test_session.py
index b20f014394..a4823b05b0 100644
--- a/tests/unit/realtime/test_session.py
+++ b/tests/unit/realtime/test_session.py
@@ -6811,6 +6811,62 @@ async def test_scrub_cancel_fallback_carries_the_active_voice_hint():
await sess.end(reason="test")
+def test_active_provider_selection_falls_back_to_adapter_default_voice(
+ monkeypatch: pytest.MonkeyPatch,
+):
+ """BUG-155: an empty card pin must still resolve a named live voice so
+ surface TTS cannot fall through to Charon while the socket speaks Kore."""
+ from types import SimpleNamespace
+
+ monkeypatch.setattr("jarvis.brain.modes.active_voice", lambda: "")
+ sess = RealtimeVoiceSession(
+ session_id="voice-default",
+ send_binary=lambda _data: asyncio.sleep(0),
+ send_json=lambda _m: asyncio.sleep(0),
+ provider=FakeProvider([]),
+ config=_cfg(),
+ surface="desktop",
+ )
+ _model, voice = sess._active_provider_selection(
+ SimpleNamespace(name="vertex-live", default_voice="Kore")
+ )
+ assert voice == "Kore"
+ pinned = RealtimeVoiceSession(
+ session_id="voice-pinned",
+ send_binary=lambda _data: asyncio.sleep(0),
+ send_json=lambda _m: asyncio.sleep(0),
+ provider=FakeProvider([]),
+ config=_cfg(providers={"vertex-live": SimpleNamespace(voice="Fenrir")}),
+ surface="desktop",
+ )
+ _model, voice = pinned._active_provider_selection(
+ SimpleNamespace(name="vertex-live", default_voice="Kore")
+ )
+ assert voice == "Fenrir"
+
+
+def test_progress_line_carries_the_active_voice_hint():
+ """Native-tool 'still on it' lines ride error_spoken; without the session
+ voice they spoke Charon (live 2026-08-19 17:46)."""
+ from jarvis.sessions.constants import SPOKEN_KIND_PROGRESS
+
+ sess = RealtimeVoiceSession(
+ session_id="progress-voice-hint",
+ send_binary=lambda _data: asyncio.sleep(0),
+ send_json=lambda _m: asyncio.sleep(0),
+ provider=FakeProvider([]),
+ config=_cfg(),
+ surface="desktop",
+ )
+ sess._active_voice = "Kore"
+ message = sess._surface_speech_message(
+ "I'm still working on it.", spoken_kind=SPOKEN_KIND_PROGRESS
+ )
+ assert message["type"] == "error_spoken"
+ assert message["voice"] == "Kore"
+ assert message["spoken_kind"] == SPOKEN_KIND_PROGRESS
+
+
# ---------------------------------------------------------------------------
# User agent-instructions (the Ruben.md-equivalent file) in the realtime path
# ---------------------------------------------------------------------------
diff --git a/tests/unit/web/test_realtime_provider_category.py b/tests/unit/web/test_realtime_provider_category.py
index 4f9aedf05e..1f2adbb27c 100644
--- a/tests/unit/web/test_realtime_provider_category.py
+++ b/tests/unit/web/test_realtime_provider_category.py
@@ -325,6 +325,18 @@ def test_get_realtime_options_gemini_live_voices(monkeypatch):
assert body["models"][0]["id"] == "gemini-3.1-flash-live-preview"
+def test_get_realtime_options_vertex_live_shares_the_gemini_voice_roster(monkeypatch):
+ """BUG-155: vertex-live had no REALTIME_VOICES entry, so the picker was
+ empty and every progress line spoke Charon."""
+ monkeypatch.setattr(cfg_mod, "get_secret", lambda *a, **kw: "vertex-test")
+ client = TestClient(_app())
+ gemini = client.get("/api/providers/gemini-live/realtime-options").json()
+ vertex = client.get("/api/providers/vertex-live/realtime-options").json()
+ assert {v["id"] for v in vertex["voices"]} == {v["id"] for v in gemini["voices"]}
+ assert vertex["models"][0]["id"] == "gemini-live-2.5-flash-native-audio"
+ assert vertex["preview_available"] is True
+
+
def test_get_realtime_options_removed_grok_is_unknown(monkeypatch) -> None:
"""grok-realtime was removed 2026-07-16 (BUG-064 deaf-session wedge); its
realtime-options endpoint must answer like any unknown provider."""
diff --git a/tests/unit/web/test_realtime_voice_preview.py b/tests/unit/web/test_realtime_voice_preview.py
index b39245298e..f2511b98d7 100644
--- a/tests/unit/web/test_realtime_voice_preview.py
+++ b/tests/unit/web/test_realtime_voice_preview.py
@@ -43,6 +43,10 @@ def test_every_preview_sampler_has_a_cataloged_realtime_provider() -> None:
from jarvis.brain.model_catalog import REALTIME_VOICES
assert set(provider_routes._REALTIME_PREVIEW_SAMPLERS) <= set(REALTIME_VOICES)
+ assert "vertex-live" in provider_routes._REALTIME_PREVIEW_SAMPLERS
+ assert provider_routes._REALTIME_PREVIEW_SAMPLERS["vertex-live"] is (
+ provider_routes._vertex_live_voice_sample
+ )
def test_unknown_provider_is_404() -> None: