- 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>
28 lines
601 B
Makefile
28 lines
601 B
Makefile
ifneq (,$(wildcard ./.env))
|
|
include .env
|
|
export
|
|
endif
|
|
|
|
PORT ?= 8080
|
|
HOST ?= 0.0.0.0
|
|
|
|
.PHONY: ensure-env install run test docker-build
|
|
|
|
ensure-env:
|
|
@if [ ! -f .env ] && [ -f .env.example ]; then \
|
|
cp .env.example .env; \
|
|
echo "Created .env from .env.example"; \
|
|
fi
|
|
|
|
install: ensure-env
|
|
python3 -m venv .venv
|
|
. .venv/bin/activate && pip install -U pip && pip install -e .[test]
|
|
|
|
run: ensure-env
|
|
. .venv/bin/activate && uvicorn app.main:app --host $(HOST) --port $(PORT) --reload
|
|
|
|
test: ensure-env
|
|
. .venv/bin/activate && pytest tests/
|
|
|
|
docker-build:
|
|
docker build -t voice-assistant-gateway .
|