mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 21:54:42 +02:00
Serveur : /v1/ask accepte un model optionnel (validé contre STT_ALLOWED_MODELS), nouvel endpoint GET /v1/models (défaut + alias autorisés). Pas de switch global. Client : 'stt --text' (chat texte simple sans micro/HUD), '--model hermes|claude|qwen|opus' (noms courts → alias LiteLLM), commandes /model et /models en mode texte. Le modèle choisi est envoyé au serveur à chaque requête (voix comme texte). Claude-Session: https://claude.ai/code/session_013FmcxGsyXZXogiAHQLjnZT Co-authored-by: Claude <noreply@anthropic.com>
31 lines
1.3 KiB
TOML
31 lines
1.3 KiB
TOML
# Configuration du CLIENT STT — copier vers ~/.config/stt/stt.toml (`stt --setup` le génère).
|
|
# Reflète les défauts embarqués (stt/client/stt/config.py : DEFAULT_CONFIG).
|
|
# Le client n'a plus de cerveau : il envoie le texte au STT-server (in-cluster).
|
|
|
|
[server]
|
|
url = "http://stt.lab.local" # endpoint du STT-server (paramétrable)
|
|
timeout_sec = 90
|
|
model = "hermes-default" # modèle demandé au serveur
|
|
# Noms courts (--model / commande /model) : hermes=hermes-default, qwen=qwen3-8b,
|
|
# claude=claude-sonnet-4-6, opus=claude-opus-4-7. Sinon mets un alias LiteLLM brut.
|
|
|
|
[voice]
|
|
wake_word = "hermes" # "Ok Hermès"
|
|
whisper_model = "large-v3" # STT faster-whisper (CPU int8) — "small" pour tester
|
|
piper_voice = "fr_FR-upmc-medium" # TTS — ~/.local/share/piper/<voix>.onnx
|
|
language = "fr"
|
|
silence_sec = 1.2
|
|
min_speech_sec = 0.6
|
|
chat_timeout_sec = 60
|
|
|
|
[ui]
|
|
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 # cache local de conversation (brut, gitignoré)
|
|
local_db = "~/.local/share/stt/memory.sqlite"
|