mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-10 09:14:42 +02:00
Regroupe le travail postérieur à la PR #18 (squash-mergée), rebasé proprement sur main : - HUD : composer texte (chat clavier sans micro) — {"type":"text"} → VoiceEngine.respond_text (hors boucle audio), lock _respond (voix ⟂ texte) - App autonome : fenêtre app/kiosk via profil + WM class dédiés (hors Brave) - Auto-update non destructif : `stt --update` = pipx upgrade (ne laisse plus l'install cassée en cas d'échec réseau) - Terminal propre : --log-level=3 + sortie navigateur vers DEVNULL - Docs : admin/incidents-llm-gpu.md (journal d'inférence dédié) — incident 2026-06-19 llama-server gelé (/health OK mais génération bloquée → 502), + HUD README / stt.md (composer), bump 0.4.x → 0.5.1 Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| hud | ||
| memory | ||
| ui | ||
| voice | ||
| __init__.py | ||
| api.py | ||
| cli.py | ||
| config.py | ||
| README.md | ||
stt/stt — package backend
Cœur Python de la commande stt. Réutilise le moteur vocal de tools/hermes-voice.py.
stt/
├── cli.py # entrypoint `stt` (--setup, --mode, --no-tts) ✅ phase 1
├── config.py # défauts embarqués + chargement ~/.config/stt/stt.toml ✅ phase 1
├── voice/ # wake word + VAD, STT faster-whisper, TTS Piper ✅ phase 1
├── brain/ # routeur 3 modes hermes/local/claude + auto-détect LAN ✅ phase 2
├── server/ # HTTP statique (HUD) + websocket (états → HUD) ✅ phase 1
└── memory/ # tier local SQLite ✅ ; Qdrant s01 + sync GitHub ⏳ phase 4
États exposés au HUD (via websocket)
idle (veille) → listening (écoute) → thinking (réflexion cerveau) → speaking (TTS) → idle.
Le HUD anime le visualiseur selon l'état et affiche transcript utilisateur + réponse.
Point de départ
Le module voice/ part de tools/hermes-voice.py (déjà fonctionnel : wake word « Ok Hermès »,
faster-whisper, Piper, webrtcvad). À refactorer en classe + callbacks d'état pour le websocket,
puis brancher brain/ (routeur) à la place de l'appel direct actuel.