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(audio): user-selectable output + microphone device (backend)

Ruben Lütke351635ab5fbf
diff --git a/jarvis/core/config_writer.py b/jarvis/core/config_writer.py
index 8712ca921e..d2473d84a3 100644
--- a/jarvis/core/config_writer.py
+++ b/jarvis/core/config_writer.py
@@ -263,9 +263,9 @@ def set_audio_device(
``kind`` is ``"input"`` or ``"output"``; ``value`` is a device display
NAME (the identifier stable across reboots/hot-plugs) or the
``"auto-headset"`` sentinel to restore automatic selection. The ``[audio]``
- block is NOT pinned in config-soll.json, so the atomic TOML patch alone # i18n-allow: filename reference
- persists it. The Settings route live-applies the change to the running
- pipeline; this stores the boot default.
+ block is NOT drift-guard pinned, so the atomic TOML patch alone persists
+ it. The Settings route live-applies the change to the running pipeline;
+ this stores the boot default.
"""
if kind not in ("input", "output"):
raise ValueError(f"kind must be 'input' or 'output', got {kind!r}")
diff --git a/tests/unit/audio/test_devices.py b/tests/unit/audio/test_devices.py
index b5e652475c..6d1c108ffe 100644
--- a/tests/unit/audio/test_devices.py
+++ b/tests/unit/audio/test_devices.py
@@ -34,9 +34,10 @@ def _patch_tables(monkeypatch, hostapis, devices, *, default=(-1, -1)) -> None:
# Windows-like table: one headset + one Realtek board, each on 4 host APIs, #
# plus the virtual mappers. Mirrors a real PortAudio enumeration. #
# --------------------------------------------------------------------------- #
-_FULL_HEADSET_OUT = "Lautsprecher (Logitech PRO X Gaming Headset)" # i18n-allow: localized Windows device name under test
+# Localized Windows device names under test (matching data, not prose).
+_FULL_HEADSET_OUT = "Lautsprecher (Logitech PRO X Gaming Headset)" # i18n-allow
_MME_HEADSET_OUT = _FULL_HEADSET_OUT[:31] # MME truncates at ~31 chars
-_FULL_HEADSET_IN = "Mikrofon (Logitech PRO X Gaming Headset)" # i18n-allow: localized Windows device name under test
+_FULL_HEADSET_IN = "Mikrofon (Logitech PRO X Gaming Headset)" # i18n-allow
_MME_HEADSET_IN = _FULL_HEADSET_IN[:31]