Initial commit: Voice Assistant Gateway mit Konfig-/Routing-Fundament

- FastAPI-Gateway mit REST-Endpunkten (chat/speak/transcribe/devices/sessions/config)
- Geschichtete Konfiguration mit Profilen (local-dev/hybrid/cloud) via TOML + ENV
- Registry-Pattern + einheitliche Route-Aufloesung (Default->Profil->ENV->Session->Request)
- Device Router (strikt, Singleton) und Output-Lifecycle im Orchestrator
- OpenRouter-Adapter (STT multipart/LLM/TTS) + lokale Provider-Stubs
- Regelbasierte Pipeline (Cleaner/Spoken-Adapter/TTS-Normalizer)
- 22 automatisierte Tests; Doku: README, BEDIENUNGSANLEITUNG, Architektur
- Secrets ausschliesslich ueber Umgebung; .env und lokale config gitignored

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-06-17 01:48:56 +02:00
commit 293ed257db
72 changed files with 2612 additions and 0 deletions

22
tests/conftest.py Normal file
View file

@ -0,0 +1,22 @@
import pytest
import app.dependencies as deps
@pytest.fixture(autouse=True)
def reset_state():
"""Isoliert den Singleton-Audio-Router (Loopback-Buffer) und Sessions je Test."""
deps._audio_router = None
deps.session_manager._sessions.clear()
yield
deps._audio_router = None
deps.session_manager._sessions.clear()
def loopback_output():
"""Liefert den LoopbackOutput aus dem aktuellen Singleton-Router."""
router = deps.get_audio_router()
for endpoint in router.outputs:
if type(endpoint).__name__ == "LoopbackOutput":
return endpoint
raise AssertionError("LoopbackOutput nicht gefunden")