Skip to content

Ezhuthachan: narrate the flow videos - #104

Draft
billjohnc wants to merge 1 commit into
mainfrom
docs/ezhuthachan-narration
Draft

billjohnc wants to merge 1 commit into
mainfrom
docs/ezhuthachan-narration

Conversation

@billjohnc

Copy link
Copy Markdown

Summary

What the Ezhuthachan skill learned while narrating the Token flow videos in #102.

  • references/narration.md (new). How to add spoken narration at the media stage. The voice reads only the captions. It covers agreeing on voices (including cloned voices and other languages), making clips with the ElevenLabs connector without paying twice, fitting them to the video by holding frames, checking the result, and saying in the pull request that the voice is AI-generated and whose it is.
  • assets/narration/ (new). Four scripts, generalised from the ones used for [docs] Token management for 3.1 #102:
    • make_plan.py turns the recorded captions into the lines to speak, and gives each flow a voice.
    • fetch.py downloads the generated clips.
    • stitch.py lists the lines still to make, shows which steps hold a frame, makes a frame sheet of each held step, and encodes the narrated videos with re-timed captions.
    • check.py checks lengths, timing and levels.
  • SKILL.md, media.md, setup.md, publishing.md. Point to narration at stage 6, ask about it at intake, and add it to what the pull request body says.

Lessons now in the skill

  • One creative_generate_speech call per line, with generations_count: 1; the default of 2 doubles the cost. Never retry a call that is still pending. Free plans refuse several calls at once.
  • Clip URLs are signed and expire within hours: fetch at once, and write down each session id as the call returns.
  • A held frame must show a settled screen. Looking at only the first and last frames of each step missed a loading screen and a list of skeleton rows in [docs] Token management for 3.1 #102. hold_frame can now hold a frame from inside the step, and the frame sheet shows the held frame next to the alternatives.
  • Overlaps are not judged by counting silences: cloned voices pause after "Step 3.".
  • Another language needs translated captions and a translated page. A Malayalam build without a translated page shows the English page and its English video.

How it was tested

Against the recordings and clips of the Token session behind #102:

  • make_plan.py rebuilt that session's plan exactly.
  • stitch.py --dry listed the same 27 held steps with the same lengths. Encoding gave captions byte-identical to the published ones.
  • The --frames sheets of all 27 held steps found two unsettled holds; [docs] Token management for 3.1 #102 now has them fixed (commit 4a58246).
  • check.py passes all 10 videos. fetch.py was tested with local files, including an unknown session and an unknown line.

No site files change, so the docs build is not affected.

🤖 Generated with Claude Code

Adds references/narration.md and four scripts in assets/narration/,
generalised from the narration of the Token flow videos: plan the lines
from the captions, fetch the generated clips, fit them to the video by
holding a settled frame, and check the result. Stage 6, intake and the
pull request rules now point to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 54bed0f
Status: ✅  Deploy successful!
Preview URL: https://9f6b997c.coredocs.pages.dev
Branch Preview URL: https://docs-ezhuthachan-narration.coredocs.pages.dev

View logs

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant