Script To Audio
Use When
- The user already has a
script.jsonfile and wants the bounded audio
step only.
- The agent needs
audio.wavandtimestamps.jsonbefore visuals or
render work starts.
- Claude Code or Codex should produce reusable audio-stage files
instead of freeform narration text.
What This Skill Owns
- Voice choice that matches the script energy.
- Spoken pacing that helps the caption system rather than fighting it.
- Timestamp quality good enough for active-word highlighting.
- Audio output that is clean, non-clipped, and ready for render.
Core Approach
- Treat this as performance direction, not just file generation.
- Pick a voice that matches the intended edit style.
- Keep speaking speed within a range the caption system can support.
- Prefer clean timing and intelligibility over squeezing more words per
second.
- If the timestamps are noisy, fix that before styling captions harder.
Inputs
script.json- optional voice and speed preferences
- optional output and metadata paths
Outputs
audio.wavtimestamps.json- optional
audio.json
Output Contract
- Reads an existing
script.jsonfile fromscriptPathwithout
modifying it.
- Writes
audio.wavandtimestamps.jsonunder the requested
outputDir.
- Optionally writes
audio.jsonwhenoutputMetadataPathis supplied. - The important result is usable timing and delivery, not just the
existence of a WAV file.
Optional Runtime Surface
- Repo-side runner:
node --import tsx scripts/harness/script-to-audio.ts
- Supporting code:
src/harness/script-to-audio.ts,
src/audio/*
Validation Checklist
audio.wavexists and is non-empty.timestamps.jsonexists and reports word timings plus total duration.- Spoken pacing feels compatible with chunked short-form captions.
- The timing is clean enough that active-word highlighting will not feel
sloppy.
- If
outputMetadataPathwas supplied,audio.jsonexists and matches
the emitted audio file.