Files
OpenJarvis/tests/speech/test_config.py
T
2026-03-12 17:29:39 +00:00

20 lines
516 B
Python

"""Tests for speech configuration."""
from openjarvis.core.config import JarvisConfig, SpeechConfig
def test_speech_config_defaults():
cfg = SpeechConfig()
assert cfg.backend == "auto"
assert cfg.model == "base"
assert cfg.language == ""
assert cfg.device == "auto"
assert cfg.compute_type == "float16"
def test_jarvis_config_has_speech():
cfg = JarvisConfig()
assert hasattr(cfg, "speech")
assert isinstance(cfg.speech, SpeechConfig)
assert cfg.speech.backend == "auto"