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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(realtime): add [voice].mode + [brain].realtime config, retire dead flag
Ruben Lütke88a392ce1e3b
diff --git a/jarvis/core/config.py b/jarvis/core/config.pyindex d5aaf9812f..11cbbc9191 100644--- a/jarvis/core/config.py+++ b/jarvis/core/config.py@@ -399,7 +399,6 @@ class BrainProviderConfig(BaseModel):class BrainPolicyConfig(BaseModel):use_routing_model_for_intent: bool = True- use_realtime_for_smalltalk: bool = Falseprompt_cache_heartbeat_seconds: int = 240voice_switch_patterns: list[str] = Field(default_factory=lambda: ["wechsel auf", "switch to", "wechsle zu"]@@ -767,6 +766,10 @@ class BrainConfig(BaseModel):default=None,validation_alias=AliasChoices("worker", "sub_jarvis"),)+ # Realtime-tier provider preference + cross-family fallback chain (AP-22).+ # None until the user opts into realtime voice. Reuses BrainTierConfig so the+ # fallback shape matches [brain.router]/[brain.worker].+ realtime: BrainTierConfig | None = None# User-facing reply language pin (desktop "Languages" view → Reply Language).# "auto" mirrors the user's input language (DE/EN/ES); "de"/"en"/"es" force# that language as a hard rule for every Jarvis reply. Consumed by@@ -1849,6 +1852,11 @@ class VoiceConfig(BaseModel):# Master switch for the completion classifier + waiting state. When false# the pipeline behaves exactly as before this feature landed.completion_detection_enabled: bool = True+ # Voice engine selector. "pipeline" = the classic STT->brain->TTS chain+ # (default, unchanged). "realtime" = the full-duplex speech-to-speech engine+ # (browser, OpenAI Realtime; opt-in). Read once per voice session; a live+ # change lands on the next session.+ mode: str = "pipeline"# Per-gap budget after which a stale pending fragment is silently# discarded (user-mandated 2026-05-26 — was: flushed/spoken). NOT a total# budget — every continuation resets the timer. Bumped from 8 s to 15 sdiff --git a/jarvis/core/config_writer.py b/jarvis/core/config_writer.pyindex 117625bf36..f51f9378b4 100644--- a/jarvis/core/config_writer.py+++ b/jarvis/core/config_writer.py@@ -539,6 +539,18 @@ def set_computer_use_engine(engine: str, *, path: Path = DEFAULT_CONFIG_FILE) ->_patch_table(path, "computer_use", "engine", engine)+def set_voice_mode(mode: str, *, path: Path = DEFAULT_CONFIG_FILE) -> None:+ """Persist the active voice engine to ``[voice] mode``.++ ``mode`` is ``"pipeline"`` (classic STT->brain->TTS, the default) or+ ``"realtime"`` (full-duplex speech-to-speech). TOML-only by design:+ ``voice.mode`` is NOT in the drift-guard reference snapshot, so it is never+ reverted (same rationale as :func:`set_computer_use_engine`). Read once per+ voice session, so the switch applies on the next session / restart.+ """+ _patch_table(path, "voice", "mode", mode)++def set_silence_window_ms(ms: int, *, path: Path = DEFAULT_CONFIG_FILE) -> None:"""Persist the voice silence window to ``[speech] vad_silence_ms`` in jarvis.toml.diff --git a/tests/unit/core/test_voice_mode_config.py b/tests/unit/core/test_voice_mode_config.pynew file mode 100644index 0000000000..969e5c3daa--- /dev/null+++ b/tests/unit/core/test_voice_mode_config.py@@ -0,0 +1,31 @@+from pathlib import Path++from jarvis.core import config as cfg_mod+from jarvis.core import config_writer+++def test_voice_mode_defaults_to_pipeline():+ cfg = cfg_mod.JarvisConfig()+ assert cfg.voice.mode == "pipeline"+ assert cfg.brain.realtime is None+++def test_dead_realtime_smalltalk_flag_is_removed():+ # The abandoned Phase-1 flag must be gone (retired, not repurposed).+ assert not hasattr(cfg_mod.BrainPolicyConfig(), "use_realtime_for_smalltalk")+++def test_set_voice_mode_persists_toml_only(tmp_path: Path):+ toml = tmp_path / "jarvis.toml"+ toml.write_text("", encoding="utf-8")+ config_writer.set_voice_mode("realtime", path=toml)+ assert '[voice]' in toml.read_text(encoding="utf-8")+ assert 'mode = "realtime"' in toml.read_text(encoding="utf-8")+++def test_realtime_tier_field_accepts_brain_tier_config():+ cfg = cfg_mod.JarvisConfig.model_validate(+ {"brain": {"realtime": {"provider": "openai"}}}+ )+ assert cfg.brain.realtime is not None+ assert cfg.brain.realtime.provider == "openai"