talk: 0.1.0 -> 0.1.1 (now built from code.m3ta.dev/m3tam3re/talk)
talk moved to its own repository and is now a Go binary with a background daemon instead of a bash script around curl/mpv. crunch: call `talk say --wait` so the announcement finishes before the systemd transient unit exits and takes an autostarted daemon with it; update documented env vars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ed2b9fb089
commit
72695e2ef0
3 files changed
+54
-227
No files matched your search
@@ -13,7 +13,7 @@
|
||||
# crunch — Voice-notified reminders & AI crunch jobs
|
||||
# via systemd transient timers.
|
||||
#
|
||||
# Requires: talk (ElevenLabs TTS) in PATH, ELEVENLABS_API_KEY env.
|
||||
# Requires: talk in PATH (TTS keys via TALK_ELEVENLABS_KEY etc.).
|
||||
# Optional: pi, opencode for AI crunch mode.
|
||||
# ═══════════════════════════════════════════════════════════════
|
||||
|
||||
@@ -51,8 +51,7 @@
|
||||
crunch cancel mll-rausbringen-12345
|
||||
|
||||
Environment:
|
||||
VOICE_NOTIFY=0 Silence voice output (passed to talk)
|
||||
ELEVENLABS_API_KEY Required by talk
|
||||
TALK_ELEVENLABS_KEY ElevenLabs key for talk (optional, falls back to free voices)
|
||||
TALK Override path to talk binary
|
||||
EOF
|
||||
}
|
||||
@@ -130,16 +129,16 @@
|
||||
case "''${1:-}" in
|
||||
_say)
|
||||
shift
|
||||
exec "$TALK" "$*"
|
||||
exec "$TALK" say --wait "$*"
|
||||
;;
|
||||
_ai)
|
||||
engine="$2"; shift 2
|
||||
case "$engine" in
|
||||
pi|pi-agent)
|
||||
pi -p "$*" | "$TALK"
|
||||
pi -p "$*" | "$TALK" say --wait
|
||||
;;
|
||||
opencode|oc)
|
||||
opencode run "$*" -q | "$TALK"
|
||||
opencode run "$*" -q | "$TALK" say --wait
|
||||
;;
|
||||
*)
|
||||
echo "Unknown engine: $engine (use: pi, opencode)" >&2
|
||||
@@ -153,7 +152,7 @@
|
||||
rc=0
|
||||
output=$(bash "$script_path" "$@" 2>&1) || rc=$?
|
||||
if [ -n "''${output:-}" ]; then
|
||||
printf '%s' "$output" | "$TALK"
|
||||
printf '%s' "$output" | "$TALK" say --wait
|
||||
fi
|
||||
exit "$rc"
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user