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(tts): filter OpenRouter picker through the allowlist; offer Inworld
Ruben Lütke139847267dc2
diff --git a/jarvis/brain/model_catalog.py b/jarvis/brain/model_catalog.pyindex 80fe873c1d..1a68dcd9bd 100644--- a/jarvis/brain/model_catalog.py+++ b/jarvis/brain/model_catalog.py@@ -160,6 +160,17 @@ TTS_CATALOG: dict[str, tuple[str, list[ModelInfo]]] = {# "use custom" row lets a user paste their OWN voice id (e.g. a cloned# voice) instead of a curated one — kept in sync with DEFAULT_VOICES in# jarvis/plugins/tts/elevenlabs_tts.py.+ # Inworld — the new premium default (arena-#1 realtime, mid-2026). Voices are+ # multilingual; these native masculine de/en/es voices are the curated pick,+ # kept in sync with DEFAULT_VOICE_* in jarvis/plugins/tts/inworld_tts.py.+ "inworld": ("voice", _curated([+ ("Josef", "Josef — German, calm assistant (default)"),+ ("Johanna", "Johanna — German, warm"),+ ("Dennis", "Dennis — English, deep narrator"),+ ("Ashley", "Ashley — English, bright"),+ ("Diego", "Diego — Spanish, formal"),+ ("Lupita", "Lupita — Spanish, warm"),+ ])),"elevenlabs": ("voice", _curated([("onwK4e9ZLuTAKqWW03F9", "Daniel — British, authoritative (default)"),("JBFqnCBsd6RMkjVDRZzb", "George — British, deep narrator"),@@ -181,22 +192,18 @@ TTS_CATALOG: dict[str, tuple[str, list[ModelInfo]]] = {"de-DE-Neural2-B", "de-DE-Neural2-C", "de-DE-Neural2-D", "de-DE-Neural2-F",])),"cartesia": ("model", _ids(["sonic-3.5", "sonic-2", "sonic-turbo"])),- # OpenRouter TTS — the model picker offers ONLY speech-synthesis models.- # This curated snapshot mirrors the live `?output_modalities=speech` list- # (verified 2026-07-02); music (Lyria) and audio-chat models are excluded.- # The user picks a MODEL here; the per-model voice list comes from the built- # provider's list_voices() (each model ships its own supported_voices). The- # default model (google/gemini-3.1-flash-tts-preview) is listed first.+ # OpenRouter TTS (the last-resort gateway) — the model picker offers ONLY the+ # four allowlisted, production-grade speech models. The five open-source slop+ # models (Kokoro, Orpheus, CSM-1B, both Zonos) are UNLISTED per the hard+ # allowlist (jarvis/plugins/tts/curated_catalog.py) — they fail the premium+ # multilingual bar on de/es coverage, beta stability, or GPU dependence. Every+ # id here must satisfy curated_catalog.is_allowed("openrouter", id) — guarded+ # by tests/unit/plugins/tts/test_openrouter_curation.py."openrouter-tts": ("model", _ids(["google/gemini-3.1-flash-tts-preview",- "hexgrad/kokoro-82m","x-ai/grok-voice-tts-1.0",- "mistralai/voxtral-mini-tts-2603","microsoft/mai-voice-2",- "sesame/csm-1b",- "canopylabs/orpheus-3b-0.1-ft",- "zyphra/zonos-v0.1-transformer",- "zyphra/zonos-v0.1-hybrid",+ "mistralai/voxtral-mini-tts-2603",])),}diff --git a/tests/unit/plugins/tts/test_openrouter_curation.py b/tests/unit/plugins/tts/test_openrouter_curation.pynew file mode 100644index 0000000000..3d5a87981b--- /dev/null+++ b/tests/unit/plugins/tts/test_openrouter_curation.py@@ -0,0 +1,63 @@+"""The OpenRouter pick list must show only allowlisted models (no slop), and the+active-provider catalog must offer Inworld (the new default)."""+from __future__ import annotations++from jarvis.brain.model_catalog import TTS_CATALOG+from jarvis.plugins.tts import curated_catalog as cc++_SLOP = {+ "hexgrad/kokoro-82m",+ "canopylabs/orpheus-3b-0.1-ft",+ "sesame/csm-1b",+ "zyphra/zonos-v0.1-transformer",+ "zyphra/zonos-v0.1-hybrid",+}+_KEEP = {+ "google/gemini-3.1-flash-tts-preview",+ "x-ai/grok-voice-tts-1.0",+ "microsoft/mai-voice-2",+ "mistralai/voxtral-mini-tts-2603",+}+++def _model_ids(entry) -> set[str]:+ _selects, models = entry+ return {m.id for m in models}+++def test_openrouter_picklist_has_no_slop():+ ids = _model_ids(TTS_CATALOG["openrouter-tts"])+ assert ids & _SLOP == set(), f"slop leaked into picker: {ids & _SLOP}"+++def test_openrouter_picklist_keeps_the_four_vetted():+ ids = _model_ids(TTS_CATALOG["openrouter-tts"])+ assert _KEEP <= ids+++def test_openrouter_picklist_matches_allowlist():+ ids = _model_ids(TTS_CATALOG["openrouter-tts"])+ # Every listed id must be allowed by the curated catalog (fail-closed).+ for mid in ids:+ assert cc.is_allowed("openrouter", mid), mid+++def test_inworld_is_offered_in_the_catalog():+ assert "inworld" in TTS_CATALOG+ selects, models = TTS_CATALOG["inworld"]+ assert selects == "voice"+ ids = {m.id for m in models}+ assert {"Josef", "Diego"} <= ids+++def test_allowed_openrouter_boundary_drops_slop_from_a_live_list():+ raw = [+ "google/gemini-3.1-flash-tts-preview",+ "hexgrad/kokoro-82m",+ "sesame/csm-1b",+ "x-ai/grok-voice-tts-1.0",+ ]+ assert cc.allowed_openrouter_model_ids(raw) == [+ "google/gemini-3.1-flash-tts-preview",+ "x-ai/grok-voice-tts-1.0",+ ]