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:
commit
293ed257db
72 changed files with 2612 additions and 0 deletions
31
.env.example
Normal file
31
.env.example
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Port bei Bedarf anpassen
|
||||
APP_ENV=dev
|
||||
HOST=0.0.0.0
|
||||
PORT=8080
|
||||
LOG_LEVEL=info
|
||||
|
||||
# Secret nur ueber die Umgebung setzen (nicht hier eintragen), z. B. export in ~/.bashrc
|
||||
OPENROUTER_API_KEY=
|
||||
|
||||
# --- Zentrale Konfiguration / Profile -------------------------------------
|
||||
# Aktives Profil aus config/voice-assistant.toml waehlen: local-dev | hybrid | cloud
|
||||
# (leer lassen = nur Defaults/ENV). Eigener Pfad via VA_CONFIG_FILE.
|
||||
VA_PROFILE=
|
||||
# VA_CONFIG_FILE=config/voice-assistant.toml
|
||||
|
||||
# Hinweis zur Praezedenz: ENV gewinnt ueber die TOML-Datei. Die DEFAULT_*_PROVIDER-
|
||||
# Zeilen unten ueberschreiben daher ein gesetztes VA_PROFILE. Wer profilbasiert
|
||||
# umschalten will, sollte sie auskommentiert lassen.
|
||||
OPENROUTER_STT_MODEL=openai/whisper-large-v3
|
||||
OPENROUTER_TTS_MODEL=openai/gpt-4o-mini-tts
|
||||
OPENROUTER_TTS_VOICE=alloy
|
||||
OPENROUTER_LLM_MODEL=openai/gpt-4.1-mini
|
||||
DEFAULT_LANGUAGE=de
|
||||
DEFAULT_INPUT_ENDPOINT=local-default
|
||||
DEFAULT_OUTPUT_ENDPOINT=local-default
|
||||
# DEFAULT_STT_PROVIDER=openrouter
|
||||
# DEFAULT_LLM_PROVIDER=local-openai-compatible
|
||||
# DEFAULT_TTS_PROVIDER=openrouter
|
||||
LOCAL_LLM_BASE_URL=http://127.0.0.1:11434/v1
|
||||
LOCAL_LLM_API_KEY=dummy
|
||||
LOCAL_LLM_MODEL=llama3.1
|
||||
Loading…
Add table
Add a link
Reference in a new issue