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
"""Deterministic fixed-buffer budget for the classic voice path."""
from __future__ import annotations
from dodaios.audio.capture import BLOCKSIZE, SAMPLE_RATE
from dodaios.audio.player import TTS_FIRST_WRITE_BUFFER_MS
_LEGACY_CAPTURE_BLOCK_MS = 100.0
_LEGACY_FIRST_WRITE_MS = 120.0
def test_fixed_chunking_budget_is_below_one_vad_frame_plus_first_playout() -> None:
capture_ms = BLOCKSIZE / SAMPLE_RATE * 1000.0
fixed_budget_ms = capture_ms + TTS_FIRST_WRITE_BUFFER_MS
legacy_budget_ms = _LEGACY_CAPTURE_BLOCK_MS + _LEGACY_FIRST_WRITE_MS
assert fixed_budget_ms <= 75.0
assert legacy_budget_ms - fixed_budget_ms >= 140.0
assert fixed_budget_ms / legacy_budget_ms < 0.35