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.

934 B
Raw Blame
"""Audio ducking — "Mute music while dictating".

Lowers other apps' audio for the duration of a voice session and restores it
afterwards. Windows: per-app session mute via pycaw. macOS: AppleScript volume
duck of the known players (Music, Spotify) with an opt-in master-output
fallback; the Automation consent it needs is asked once, when the user switches
the feature on while a player is open, and never during a voice session. A
logged no-op elsewhere so the base headless install boots unaffected.
"""
from __future__ import annotations

__all__ = ["AudioDuckController", "make_audio_duck_controller"]


def __getattr__(name: str):  # lazy: controller imports events; keep package light
    if name in ("AudioDuckController", "make_audio_duck_controller"):
        from dodaios.audio.ducking import controller

        return getattr(controller, name)
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")