feat(home): yt-transcribe tool + watcher (captions-first, X via gallery-dl)
- yt-transcribe: YouTube/X/local-file transcription. Captions first (yt-dlp; X serves auto-captions via its twitter extractor), Whisper fallback (whisper-cli reusing OpenSuperWhisper's ggml model), reclip download reuse, INDEX.md + --list/--index for id->title mapping. - watcher: launchd every 5 min over media/video on the Unraid share, sidecar .txt per download, marker-guarded, stale-marker purge. - Code executes from the nix store via stable ~/.local/bin symlinks: launchd EPERMs on SMB exec; share stays data-only. - brews: declare yt-dlp, whisper.cpp, gallery-dl (cleanup=zap removes undeclared formulas).
This commit is contained in:
1 parent
9264bd0adf
commit
9821fde02b
4 files changed
+462
-1
No files matched your search
@@ -45,6 +45,7 @@
|
||||
onActivation.extraFlags = [ "--force" ];
|
||||
brews = [
|
||||
"ffmpeg"
|
||||
"gallery-dl" # X/Twitter media download for yt-transcribe (X video needs auth yt-dlp can't get)
|
||||
"gh"
|
||||
"herdr"
|
||||
# Client-only psql for read-only DB investigation. libpq is the keg-only
|
||||
@@ -58,6 +59,8 @@
|
||||
"tea" # Gitea CLI - PRs for firstmate crewmates on unraid.local:3003
|
||||
"tmux"
|
||||
"treehouse"
|
||||
"whisper-cpp" # whisper-cli for yt-transcribe (reuses OpenSuperWhisper's model)
|
||||
"yt-dlp" # yt-transcribe engine; same engine reclip runs in its container
|
||||
];
|
||||
casks = [
|
||||
# Codex desktop home: the standalone Codex.app was folded into the ChatGPT
|
||||
@@ -72,5 +75,24 @@
|
||||
"wezterm"
|
||||
];
|
||||
};
|
||||
|
||||
# yt-transcribe-watcher: scans reclip's download dir (media/video on the
|
||||
# Unraid share) every 5 min and transcribes new media files (Whisper — a
|
||||
# bare download carries no captions). Runs the nix-store copy through a
|
||||
# stable ~/.local/bin symlink — launchd can neither exec from the SMB share
|
||||
# (EPERM) nor reach into TCC-protected ~/Documents. Silent exit when the
|
||||
# share is unmounted.
|
||||
launchd.user.agents."yt-transcribe-watcher" = {
|
||||
command = "/Users/laptran/.local/bin/yt-transcribe-watcher";
|
||||
serviceConfig = {
|
||||
StartInterval = 300;
|
||||
StandardOutPath = "/tmp/yt-transcribe-watcher.out";
|
||||
StandardErrorPath = "/tmp/yt-transcribe-watcher.err";
|
||||
EnvironmentVariables = {
|
||||
HOME = "/Users/laptran";
|
||||
PATH = "/usr/bin:/bin:/usr/sbin:/sbin";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user