Tts dub align

From XuShuwenn/RedAct · View interactive version

Tts dub align is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Create target-language TTS, align it to subtitle windows, normalize to broadcast loudness, mux into the original video, and produce a verification report.

How to use this skill

Skill file

TTS Dubbing: Timing Alignment and Loudness Compliance

This skill provides a reusable workflow to synthesize target-language speech, fit it to specified time windows from subtitles, normalize to broadcast loudness (ITU-R BS.1770 loudness via loudnorm/ebur128), mux with the original video, and verify timing and format constraints.

Use it for tasks requiring:

When to Use

Core Workflow

1) Ingest and Inspect Inputs

2) Generate Target-Language Speech (TTS)

3) Decide Duration Control Strategy

Given:

Choose one of:

Notes:

4) Process Audio to Exact Specs

5) Loudness Normalization (Standards-Based)

6) Mux Audio with Video

7) Verification and Report

Verification Checklist

Common Pitfalls and How to Avoid Them

Optional Script Usage

A helper script is provided to align and normalize a single segment. It:

Example:

scripts/align_and_normalize.py \

--in raw_tts.wav \

--out seg_0.wav \

--window-start 0.00 \

--window-end 2.10 \

--target-lufs -23.0

Then mux into the video at the precise offset (example command):

After muxing, probe durations and loudness, compute placed_start_sec/placed_end_sec, and write the report JSON.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.