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(realtime): gemini-live provider spec + entry-point

Ruben Lütkee8dac8d05e8f
diff --git a/jarvis/ui/web/provider_spec.py b/jarvis/ui/web/provider_spec.py
index b3a222015e..6d52ec29c0 100644
--- a/jarvis/ui/web/provider_spec.py
+++ b/jarvis/ui/web/provider_spec.py
@@ -358,9 +358,11 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
# a key-free local faster-whisper *fallback* (_build_local_fallback, AP-22)
# as an invisible resilience floor for a user with no cloud STT key.
# ── Realtime ──────────────────────────────────────────────────────────
- # Realtime voice is OpenAI-ONLY today (jarvis.plugins.realtime.openai_realtime,
- # jarvis.realtime.protocol.RealtimeProvider). Gemini Live is NOT implemented —
- # do not add a gemini-live spec here, it would show a card that cannot work.
+ # Realtime voice spans two providers today
+ # (jarvis.plugins.realtime.openai_realtime, jarvis.realtime.protocol.
+ # RealtimeProvider). The Gemini Live adapter (jarvis.plugins.realtime.
+ # gemini_live) is added by a later task — this spec is registered ahead of
+ # it so the entry-point below stays inert until that module exists.
ProviderSpec(
id="openai-realtime",
label="OpenAI Realtime",
@@ -375,6 +377,21 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
"default-OFF until the realtime client is wired in (Phase 2)."
),
),
+ ProviderSpec(
+ id="gemini-live",
+ label="Gemini Live",
+ tier="realtime",
+ auth_mode="api_key",
+ secret_keys=("gemini_api_key",),
+ dashboard_url="https://aistudio.google.com/app/apikey",
+ credential_help=(
+ "Google AI Studio key (AIza/AQ.), shared with the Gemini brain, to "
+ "power Google's full-duplex Live realtime voice. Or use the Vertex AI "
+ "service-account path for higher quota. Default-OFF until the realtime "
+ "client is wired in (Phase 2)."
+ ),
+ alt_credential=_GEMINI_VERTEX,
+ ),
)
diff --git a/pyproject.toml b/pyproject.toml
index 08e51bd98b..3404b489be 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -338,8 +338,10 @@ discord = "jarvis.channels.discord:DiscordChannel"
[project.entry-points."jarvis.realtime"]
# Full-duplex speech-to-speech providers (Phase realtime-voice). OpenAI GA
-# gpt-realtime is the first; Gemini Live follows in Phase 4.
+# gpt-realtime is the first; Gemini Live is the second (adapter module lands
+# in a later task — until then this line is inert, entry-points load lazily).
openai-realtime = "jarvis.plugins.realtime.openai_realtime:OpenAIRealtimeProvider"
+gemini-live = "jarvis.plugins.realtime.gemini_live:GeminiLiveProvider"
[project.entry-points."jarvis.tool"]
open-app = "jarvis.plugins.tool.open_app:OpenAppTool"
diff --git a/tests/unit/web/test_realtime_provider_category.py b/tests/unit/web/test_realtime_provider_category.py
index 7ab9625e21..df559516c1 100644
--- a/tests/unit/web/test_realtime_provider_category.py
+++ b/tests/unit/web/test_realtime_provider_category.py
@@ -1,7 +1,8 @@
"""Realtime provider tier — backend for the API-Keys & Providers "Realtime" tab.
-Mirrors the brain/tts/stt tier plumbing: a ProviderSpec (``openai-realtime``,
-the only realtime provider today — Gemini Live is not implemented), the
+Mirrors the brain/tts/stt tier plumbing: the realtime ProviderSpecs
+(``openai-realtime`` and ``gemini-live`` — the Gemini Live adapter module
+itself lands in a later task, this only covers the declarative spec), the
``active_realtime`` resolution in ``list_providers``, the credential-presence
section-health check, and the ``POST /realtime/switch`` route. Style follows
``tests/unit/web/test_voice_mode_route.py`` (a lightweight FastAPI app with
@@ -38,6 +39,13 @@ def test_openai_realtime_spec_is_realtime_tier_with_openai_key():
assert "openai_api_key" in spec.secret_keys
+def test_gemini_live_spec_present():
+ spec = get_spec("gemini-live")
+ assert spec is not None
+ assert spec.tier == "realtime"
+ assert spec.secret_keys == ("gemini_api_key",)
+
+
# ---------------------------------------------------------------------------
# GET /api/providers
# ---------------------------------------------------------------------------