mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-11 17:24:42 +02:00
feat(stt): phase 1-2 — commande, backend vocal, routeur cerveau, HUD MVP
- cli.py : commande `stt` (--setup, --mode, --no-tts) - config.py : défauts embarqués + ~/.config/stt/stt.toml - voice/engine.py : refactor de hermes-voice en classe avec callbacks d'état - brain/router.py : 3 modes (hermes SSH / local LiteLLM / claude API) + auto-détection LAN - server/app.py : HTTP statique (HUD) + websocket (états → HUD) - memory/store.py : tier local SQLite (Qdrant + sync GitHub = phase 4) - hud/index.html : HUD MVP (visualiseur d'état + conversation) Vérifié hors-LAN : py_compile, --help, config, routeur (→ claude), mémoire SQLite. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FmcxGsyXZXogiAHQLjnZT
This commit is contained in:
parent
8096ba208d
commit
6c680c4f8b
15 changed files with 799 additions and 33 deletions
|
|
@ -1,13 +1,14 @@
|
|||
# Configuration STT — copier vers ~/.config/stt/stt.toml (via `stt --setup`)
|
||||
# Configuration STT — copier vers ~/.config/stt/stt.toml (`stt --setup` le génère).
|
||||
# Ces valeurs reflètent les défauts embarqués (stt/stt/config.py : DEFAULT_CONFIG).
|
||||
|
||||
[brain]
|
||||
# Mode cerveau : "auto" (détecte le LAN), "hermes", "local", "claude"
|
||||
# Mode cerveau : "auto" (ping s01 → hermes si LAN, sinon claude), "hermes", "local", "claude"
|
||||
mode = "auto"
|
||||
# Hôte testé pour décider LAN vs hors-LAN
|
||||
lan_probe_host = "192.168.1.200"
|
||||
lan_probe_port = 4000 # LiteLLM — présent dès que s01 est joignable
|
||||
|
||||
[brain.hermes] # mode hermes (LAN) — agit sur Funk
|
||||
url = "http://192.168.1.200:8080"
|
||||
[brain.hermes] # mode hermes (LAN) — agit sur Funk (via SSH, éprouvé)
|
||||
ssh_host = "s01"
|
||||
profile = "funk-ai"
|
||||
|
||||
[brain.local] # mode local-direct (LAN) — chat Qwen3 sur g01
|
||||
|
|
@ -16,25 +17,28 @@ api_key = "lm-studio"
|
|||
model = "hermes-default"
|
||||
|
||||
[brain.claude] # mode claude-direct (hors-LAN) — chat seul
|
||||
# Clé via variable d'env ANTHROPIC_API_KEY (ne JAMAIS committer la clé ici)
|
||||
model = "claude-sonnet-4-6"
|
||||
model = "claude-sonnet-4-6" # clé via env ANTHROPIC_API_KEY (jamais ici)
|
||||
|
||||
[voice]
|
||||
wake_word = "hermes" # "Ok Hermès"
|
||||
whisper_model = "large-v3" # STT (faster-whisper, CPU int8)
|
||||
piper_voice = "fr_FR-upmc-medium" # TTS — voix dans config/voices/
|
||||
whisper_model = "large-v3" # STT faster-whisper (CPU int8)
|
||||
piper_voice = "fr_FR-upmc-medium" # TTS — ~/.local/share/piper/<voix>.onnx
|
||||
language = "fr"
|
||||
silence_sec = 1.2 # silence avant fin d'enregistrement
|
||||
chat_timeout_sec = 60 # retour en veille sans interaction
|
||||
silence_sec = 1.2
|
||||
min_speech_sec = 0.6
|
||||
chat_timeout_sec = 60
|
||||
|
||||
[ui]
|
||||
theme = "arc-reactor" # thème dans config/themes/
|
||||
avatar = "default" # image dans config/avatars/
|
||||
kiosk = true # ouvre le HUD en plein écran au lancement
|
||||
theme = "arc-reactor"
|
||||
avatar = "default"
|
||||
kiosk = true
|
||||
ws_host = "127.0.0.1"
|
||||
ws_port = 9300 # websocket états → HUD (doit matcher hud/index.html)
|
||||
http_port = 9301 # HTTP statique qui sert le HUD
|
||||
|
||||
[memory]
|
||||
enabled = true
|
||||
local_db = "~/.local/share/stt/memory.sqlite" # tier local (gitignoré)
|
||||
distill_on_exit = true # distille → GitHub à l'arrêt
|
||||
qdrant_url = "http://192.168.1.200:6333" # tier s01 (si LAN + Qdrant up)
|
||||
distill_on_exit = true # phase 4
|
||||
qdrant_url = "http://192.168.1.200:6333" # tier s01 (phase 4)
|
||||
qdrant_collection = "stt-memory"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue