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.

635 B
Raw Blame
from __future__ import annotations

from dodaios.plugins.stt.fwhisper import FasterWhisperProvider
from dodaios.speech.rolling_whisper_wake import RollingWhisperWake
from dodaios.speech.wake_phrase import compile_wake_matcher


def test_final_stt_has_no_example_prompt_that_can_be_hallucinated() -> None:
    stt = FasterWhisperProvider()

    assert stt._initial_prompt is None  # noqa: SLF001


def test_rolling_wake_ignores_very_low_rms_hallucination_windows() -> None:
    wake = RollingWhisperWake(
        FasterWhisperProvider(), pattern=compile_wake_matcher("Hey Nova")
    )

    assert wake._min_rms >= 0.003  # noqa: SLF001