Text to speech

From UCSB-NLP-Chang/Skill-Usage · View interactive version

Text to speech is an AI agent skill from the GitHub repository UCSB-NLP-Chang/Skill-Usage. Practical mastering steps for TTS audio: cleanup, loudness normalization, alignment, and delivery specs.

How to use this skill

Skill file

SKILL: TTS Audio Mastering

This skill focuses on producing clean, consistent, and delivery-ready TTS audio for video tasks. It covers speech cleanup, loudness normalization, segment boundaries, and export specs.

1. TTS Engine & Output Basics

Choose a TTS engine based on deployment constraints and quality needs:

Key rule: Always confirm the native sample rate of the generated audio before resampling for video delivery.


2. Speech Cleanup (Per Segment)

Apply lightweight processing to avoid common artifacts:

Recommended FFmpeg pattern (example):


3. Loudness Normalization

Target loudness depends on the benchmark/task spec. A common target is ITU-R BS.1770 loudness measurement:

Recommended workflow:

  1. Measure loudness using FFmpeg ebur128 (or equivalent meter).
  2. Apply normalization (e.g., loudnorm) as the final step after cleanup and timing edits.
  3. If you adjust tempo/duration after normalization, re-normalize again.

4. Timing & Segment Boundary Handling

When stitching segment-level TTS into a full track:

Sync guideline: keep end-to-end drift small (e.g., <= 0.2s) unless the task states otherwise.

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.