Communitygithub.com

akshayDev17/ai-explainer-video

Synthesize narration and build the measured timeline for one video. Stage 4 of explainer-video-from-coursework — the one-shot TTS primitive.

ai-explainer-video 是什麼?

ai-explainer-video is a Gemini CLI agent skill that synthesize narration and build the measured timeline for one video. Stage 4 of explainer-video-from-coursework — the one-shot TTS primitive.

相容平台~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/akshayDev17/ai-explainer-video/tree/HEAD/skills/craft-video-audio

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

craft-video-audio — TTS and the measured timeline

Part of the explainer-video-from-coursework pipeline — stage 4 of 8. This is the primitive: it builds audio once and stops. The scene stage re-invokes it when a beat needs a hold; this skill itself never loops.

The pipeline's tools and scene hosts live in the sibling explainer-video-from-coursework skill: run them as node ../explainer-video-from-coursework/tools/<tool>.mjs, resolved against this skill's folder. Run from the project, so out/ scratch lands beside your notes.

Prerequisites: out/<name>/scripts/<NN>-*.json from the script stage; on the machine, the Gemini key in the OS secret store (see SETUP.md).

A No API key found failure means the key isn't in the OS secret store — relay the matching SETUP.md step to the user and re-run.

node ../explainer-video-from-coursework/tools/build-audio.mjs --script out/<name>/scripts/<NN>-*.json \
                           --out out/<name>/<NN> --voice Aoede

Writes narration/<seg>.wav, narration.wav, timeline.json, and timeline.js into the per-video work dir. This is the only network stage — it spends the Gemini TTS key.

Done when: the run exits 0 and prints one window per segment, ending in [out] …/timeline.json.

  • Durations are measured, not estimated — each WAV is measured with ffprobe; the plan's Min was a guardrail, this is the real number later stages bind to.
  • The cache is text-keyed — narration/<key>.src stores the exact spoken text, so a re-run after a wording tweak costs 0 calls. It does not cover --voice, style, or --model: change one and the old audio is silently reused. Pass --force to re-synthesize.

Maintenance

If you modify this file, or the user asks to change this stage, tell the user that the main explainer-video-from-coursework skill's "Stage 4 — /audio" section must be reconciled to match, and name that section in your reply.

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

akshayDev17/ai-explainer-video

Assemble one video from its segments — render each window silent, concatenate, mux the narration once, and verify. Stage 8 of explainer-video-from-coursework.

akshayDev17/ai-explainer-video

Retitle and curate the videos in an explainer-video plan — write enrichment.json and merge it. Stage 2 of explainer-video-from-coursework; run it alone to retitle an existing plan.

akshayDev17/ai-explainer-video

Decompose a coursework notes directory into an explainer-video plan and prove no content-bearing section is dropped. Stage 1 of explainer-video-from-coursework; run it alone to (re)plan a directory.

akshayDev17/ai-explainer-video

Generate YouTube chapters and English captions for one finished video. Stage 6 of explainer-video-from-coursework.

akshayDev17/ai-explainer-video

Render one scene config over one time window to an MP4 (or a handful of QA stills). Stage 7 of explainer-video-from-coursework — the render primitive.

akshayDev17/ai-explainer-video

Author and iterate the animated visuals for one video's segments. Stage 5 of explainer-video-from-coursework; it re-invokes the audio stage when a beat needs a hold.

akshayDev17/ai-explainer-video

Write and validate the spoken narration for one explainer-video. Stage 3 of explainer-video-from-coursework; run it alone to (re)write a video's script.

akshayDev17/ai-explainer-video

Plan an explainer-video series from a directory of coursework notes — decompose into videos (proving nothing is dropped), retitle and curate, write the narration, synthesize the audio, author the visuals, then render and assemble the finished cut. Use when the user wants to turn structured coursework notes into explainer videos.

相關技能