From 1b61c1cb0c3ff4cdedab793eeb65bf77e28d7044 Mon Sep 17 00:00:00 2001 From: m3ta-chiron Date: Thu, 2 Jul 2026 20:10:19 +0200 Subject: [PATCH] docs(voice-notify): API key from agenix file instead of env var Prerequisites updated: /run/agenix/elevenlabs-key is now the primary source, ELEVENLABS_API_KEY env var is the fallback. --- skills/voice-notify/SKILL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/voice-notify/SKILL.md b/skills/voice-notify/SKILL.md index 39121c1..d8ee163 100644 --- a/skills/voice-notify/SKILL.md +++ b/skills/voice-notify/SKILL.md @@ -11,7 +11,7 @@ ElevenLabs TTS voice notifications with a dismissable desktop popup. Audio playb ## Prerequisites - `talk` binary installed (via `m3ta-nixpkgs pkgs.talk`) -- `ELEVENLABS_API_KEY` set in environment +- ElevenLabs API key at `/run/agenix/elevenlabs-key` (preferred) or `ELEVENLABS_API_KEY` env var (fallback) - Desktop notification daemon (DMS, dunst, mako, etc.) - Audio playback (`mpv`) and PipeWire/PulseAudio running @@ -114,7 +114,7 @@ Set per-shell, per-user, or system-wide via Home-Manager `home.sessionVariables` ## Pitfalls -- **No audio?** Check `ELEVENLABS_API_KEY` is set and has credits (HTTP 402 = no credits) +- **No audio?** Check `/run/agenix/elevenlabs-key` exists and is readable (or `ELEVENLABS_API_KEY` env var). HTTP 402 = no credits - **No popup?** Ensure a notification daemon is running (`notify-send` needs a daemon) - **Cancel button doesn't stop audio?** Fixed: the poll loop now uses `[ -s ]` (non-empty check) instead of `[ -f ]` (exists). The action file is created as empty by the shell redirect; it's only filled when the user clicks Abbrechen. - **`pw-play` doesn't work** — it can't decode MP3; `talk` uses `mpv` which handles all formats