Files
Tommi Kyntola 3b40e7d18d Voice control daemon: Clojure core + resident Python ear worker (milestones 1-2)
- Clojure daemon: ndjson unix-socket control API (publish/control/target/
  query/events/replay), JSONL audit log with replay-by-trace, state.json +
  mic-recording/speech-detected markers, timeout-only notifications
- Router with whole-match keypress grammar (ported from lausu), :prefix and
  :key-armed fallback strategies, enter-modes, armed single-shot
- Delivery backends: tmux (load-buffer/paste-buffer + send-keys, list-panes
  existence check) and focus (ydotool type/key with keycode chords)
- Resident ear worker (pixi/faster-whisper): manual latch via pw-record,
  model loaded once; daemon supervises and syncs mode transitions
  (voice-off discards a recording, F10 stop transcribes it)
- tools/: dais-ctl (node) + KDE-safe sh toggles dais-vad/dais-rec/dais-esc
- 36 tests / 135 assertions; live acceptance: 3s latch recording transcribed
  in ~1s and routed to a type-text plan
2026-06-10 15:46:58 +03:00

5 lines
259 B
Bash
Executable File

#!/bin/sh
# Send Escape to the active dais target immediately (bind to F11). KDE-safe.
SOCK="${DAIS_SOCKET:-${XDG_RUNTIME_DIR:-/run/user/$(/usr/bin/id -u)}/dais/control.sock}"
printf '{"op":"control","action":"esc"}\n' | /usr/bin/socat - "UNIX-CONNECT:$SOCK"