diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-17 12:03:30 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-17 12:03:30 +0100 |
| commit | e15acfcf73b108c040f7f5da8d8a2d9a399172f4 (patch) | |
| tree | 3fe445cd985baa0aef1e075cd3f7224a7aa7b3f7 /docs/superpowers | |
| parent | 784b5ce41b84e13245555350352973155b97cc3e (diff) | |
| download | desktop-assistant-e15acfcf73b108c040f7f5da8d8a2d9a399172f4.tar.gz desktop-assistant-e15acfcf73b108c040f7f5da8d8a2d9a399172f4.zip | |
tools: video, transcribe local and online videos
video.sh takes an absolute path or an http(s) URL. Uploader subtitles
(it/en) when the URL has them, else whisper large-v3-turbo on the CPU,
so the loaded model keeps the GPU. The transcript goes to
$ASSISTANT_DIR/<slug>.md and opens; the model gets the path first and
the start of the text. Over 30 minutes it asks first.
The daemon now kills a running tool's process group on stop: a
transcription can run for minutes. A video attachment reaches the
model as its path only, for the tool.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/superpowers')
| -rw-r--r-- | docs/superpowers/specs/2026-11-17-video-transcript-design.md | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/docs/superpowers/specs/2026-11-17-video-transcript-design.md b/docs/superpowers/specs/2026-11-17-video-transcript-design.md index ad1d268..6422200 100644 --- a/docs/superpowers/specs/2026-11-17-video-transcript-design.md +++ b/docs/superpowers/specs/2026-11-17-video-transcript-design.md @@ -1,6 +1,6 @@ # Video transcript tool: design -Date: 2026-11-17. Status: proposed. +Date: 2026-11-17. Status: implemented, live check pending. ## Goal @@ -151,13 +151,20 @@ image: the model gets the path for the tool, nothing else. Chip kind ### Check -`video.sh --test`, like `test-clone.sh`: a generated 5 s clip (`ffmpeg --f lavfi` sine plus `flite` or a stored speech sample from outside the -repo) as mp4 and mkv; a source with no audio; a relative path; the -30-minute refusal on a fake duration; slug collisions; the output -starting with the path line. URL steps against a `file://` source are -not possible with yt-dlp's generic extractor rules, so they are covered -by the live check only. +`test-video.sh`, like `test-clone.sh`: an espeak-ng sentence in an +mp4 (Opus: this ffmpeg has no AAC encoder) through the real whisper, +twice for the slug collision; an mkv with no audio; a relative and a +missing path; a real 31-minute silent webm for the refusal; a stale +temp folder removed, a fresh one kept. yt-dlp is a stub driven by +environment variables: uploader subtitles in it and en (the spoken +language picked, header, NOTE, tags and repeated cues stripped), no +subtitles (audio through whisper), an unavailable video, an unknown +length, a long one, and 400 cues whose output stays under the cap +with the path line first. + +whisper drops the last word of a clip that ends on it, even with 2 s of +silence after (espeak's "tool." in the test); real videos rarely end +mid-sentence. ### Live check |
