record-narration
Skill201 starsChanged 5 days agoMITView on GitHub
Use for webcam framing, script-based narration recording with optional video, or reviewing takes into narration audio, subtitles and synchronized camera exports.
In this repository13 other files it gives its agents.
- boring-videoSkill
- develop-topicSkill
- learn-writing-tasteSkill
- minimax-ttsSkill
- record-terminalSkill
- setup-boring-video-skillsSkill
- to-articleSkill
- to-narrationSkill
- to-scenesSkill
- to-spec-beatsSkill
- to-storyboardSkill
- to-videoSkill
- verysmallwoods-videoSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Start a long-running process and retain its process handle:
- Distinctive: line 35
Leave the service running and yield the chat while they record.
- Very specific: line 41
Use an existing compatible environment when available.
- Distinctive: line 61
Before subtitle correction, follow retakes.md, even when transcription is fluent.
- Very specific: line 69
Write corrections.json as an array of changed cue IDs and replacement text.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Record Narration
Produce human-recorded narration and reviewed, timed subtitles from an existing UTF-8 script. Resolve bundled paths relative to this skill's directory; run the commands below there with absolute project paths. Treat recorded speech as the content authority and the script as context for recognition and progression. Preserve original takes, coherent improvisation and speaking speed. Remove abandoned retries when a complete replacement is identifiable. General pause compression and TTS are outside this workflow; recording-handoff processing and acceptance are defined in processing.md.
For webcam preview or capture, a handoff containing video, or camera export, read camera.md before session setup or processing.
1. Establish the session
Resolve the script and project directory from the request. For a new recording, choose <project>/narration/recording-YYYYMMDD-HHMMSS. For a continuation, including draft revisions and repeated recording, reuse the previously supplied session path. The session's script.txt is the current draft; each take retains its own script snapshot. Set the recording’s reference script once: for a submitted session take, use its script path in handoff.json; for directly imported audio, use the supplied matching script, or the backup take’s snapshot as defined in recovery.md. Use that reference for retake review, correction and delivery.
Ready to proceed: the script and session path are known, and a continuation uses the existing session rather than a replacement.
2. Open the recorder and let the user record
Start a long-running process and retain its process handle:
python3 scripts/recorder.py --script /absolute/path/NARRATION.md \
--session /absolute/path/project/narration/recording-YYYYMMDD-HHMMSSRerunning this command for the same session reuses its running service and URL without opening another tab. When the user revises the draft, run the same command with --update-script; the existing page picks up the new text while idle. Finish or recover incomplete takes before updating; for unrecoverable takes, follow recovery.md. Keep the session directory and recorder-server.json private; the latter contains the local access token. If the service has stopped, restart it on the same port. An occupied port is an error to resolve, rather than a reason to silently select a new port.
Recorder ready: the service is reachable for the intended session. After a draft update, verify that the existing page displays the requested text and previous takes retain their script snapshots. If the page cannot be inspected, report the display check as pending rather than claiming the new draft is visible.
Give the user the printed browser URL, including its token fragment, and the session path. For preview-only requests, finish at the camera reference’s Preview ready gate; the recording and submission steps below apply when recording is requested.
Ask them to choose a microphone, start recording, stop and listen, then select a take and click “使用选中版本,交给 Codex”. They can pause/resume or record another whole take. After saving, they can drag across the waveform and play that selection to inspect short retries. Microphone permission and recording controls belong to the user.
Leave the service running and yield the chat while they record. Explain that they must return and say “录好了,继续处理”; the page saves a handoff file but does not send a chat message. If opening, saving or recording fails, read recovery.md.
Recording submitted: after the user resumes, session.json has status ready, its selected take is complete, and handoff.json names that same take and an existing audio file. Otherwise report the current state and help them finish selecting/submitting; a verbal “done” alone is insufficient. Once submitted, processing can continue without the recorder service.
3. Prepare audio and transcribe
Use an existing compatible environment when available. Recording needs Python 3.10+; processing needs ffmpeg and ffprobe, plus this skill’s requirements.txt installed in a Python 3.11/3.12 virtual environment outside the skill directory. If dependencies are missing, or only part of processing succeeded, read recovery.md.
On recording handoff, read processing.md and complete its noise-reduction stage before normalization, transcription and retake editing. Use the treated candidate with --audio in the command below, retaining its session and script association. For quieter pauses or distant background voices, background.md defines an optional suppression helper.
Tell the user that first use may download model weights; audio processing and transcription run locally. Choose the spoken language (zh for Chinese, auto when uncertain) and a new output directory:
/path/to/venv/bin/python scripts/process_audio.py prepare \
--audio /absolute/path/new-version/denoised.wav --output /absolute/path/processed-v1 \
--transcribe --language zhThis uses ffmpeg-normalize to measure and apply a uniform gain, then transcribes narration.wav. Preserve the loudness report: peak headroom can require a quieter target. A dynamic fallback stops export rather than amplifying quiet passages separately. Normalization preserves relative levels; it does not remove noise. Optional background suppression is a separate preceding stage with its own review gate. Use scripts/process_audio.py --help and its subcommand help for alternate inputs or model settings.
Ready for editing: the WAV is decodable, raw cues locate speech, and transcript.raw.json plus the raw SRT are saved. Initial subtitles either export or initial-layout-status.json records the pending issue. Retain raw zero-duration tokens and their shared-timing notes. Continue evidence-based editing from successful recognition; use recovery.md for other export failures. Final subtitle checks belong to step 6.
4. Resolve retakes before correcting subtitles
For transcript-based decisions, acoustic cuts and local review previews, follow agent-edit.md.
Before subtitle correction, follow retakes.md, even when transcription is fluent. Preserve raw recognition as evidence.
Supported edits exported: cuts have an edit report and a fresh transcript; without cuts, reuse step 3's artifacts. The audio-review ledger accounts for candidates, user reports and remaining gaps; REVIEW.md summarizes its status. Correct only the final audio's transcript.
5. Correct recognition against the script
Read the reference script established in step 1 and the complete final transcript. Correct recognition errors and punctuation using audio evidence and context; preserve intelligible spoken wording, including off-script additions, omissions and changed examples. A difference from the script alone is not a recognition error. Apply the author-intent and capability rules in the retake reference to unresolved passages, and record their IDs, times and disposition in REVIEW.md.
Write corrections.json as an array of changed cue IDs and replacement text; use [] if no changes are needed. For example, when cue 3 clearly misrecognized the spoken product name:
[{"id": 3, "text": "然后交给 Codex 处理。"}]Apply the reviewed changes:
python3 scripts/process_audio.py correct \
--transcript /absolute/path/processed-v1/transcript.raw.json \
--corrections /absolute/path/processed-v1/corrections.json \
--output /absolute/path/processed-v1/reviewedCorrection complete: every cue has been considered; reviewed cue IDs and times match the raw cues, all text changes have evidence, and unresolved differences are documented. The corrected JSON's segments contain reviewed text; its words retain raw recognition evidence. Downstream subtitles must use the reviewed segments or exported SRT.
6. Verify and hand off
Read subtitles.md and generate delivery subtitles from the corrected transcript. This required pass defines the single-line policy, natural boundary review, reading-speed checks and timing provenance. Follow its acceptance criteria before claiming subtitle delivery is complete. Record its results in REVIEW.md alongside the audio review defined in the retake reference.
Deliver clickable absolute paths to the final WAV, final subtitle SRT and corresponding transcript JSON, script snapshot and review notes; include the edit report when cuts were made. If cues were merged, link the delivery exports and retain the reviewed originals as provenance. Keep original takes and chunks available. Follow processing.md to deliver the processing report and obtain explicit acceptance of this audio version before downstream production. Replacing an existing project's audio requires the user's requested scope to cover that change.
Delivery status: report the audio-review result under the retake reference's completion criteria alongside subtitle verification. Unfinished speech review remains incomplete work in both REVIEW.md and the final response.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

