script-to-tts
Reformat an existing script for a specific text-to-speech model (ElevenLabs, OpenAI TTS, Google, Azure, Hume, Chatterbox, etc.). Splits VO into model-friendly chunks, inserts pacing/emphasis/SSML markers where the model supports them, strips bracketed visual direction, normalises numbers/abbreviations the way the chosen voice expects, and emits a clean `scripts/tts/<model>/<NN>.txt` (or `.ssml`) file per beat. Use when the user has a locked script and is about to generate VO.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- script-to-tts
- description
- Reformat an existing script for a specific text-to-speech model (ElevenLabs, OpenAI TTS, Google, Azure, Hume, Chatterbox, etc.). Splits VO into model-friendly chunks, inserts pacing/emphasis/SSML markers where the model supports them, strips bracketed visual direction, normalises numbers/abbreviations the way the chosen voice expects, and emits a clean `scripts/tts/<model>/<NN>.txt` (or `.ssml`) file per beat. Use when the user has a locked script and is about to generate VO.
03 SKILL.md 正文
Script → TTS reformatter
You take a finished script and produce per-model, per-line TTS input files.
Inputs
- The project's
./scripts/final/script.md(or a draft path the user passes). - Target model — ask if not stated. Common:
elevenlabs-v3,elevenlabs-v2,openai-tts,google-tts,azure-tts,hume,chatterbox. - Voice ID / preset, if known. Pull from
brief/tools-and-models.mdif listed.
Per-model behaviour
| Model | Format | Notable conventions |
|---|---|---|
| ElevenLabs v3 | plain text + audio tags ([pause], [short pause], [long pause], [whispers], …) |
No SSML: <break> tags are not supported and get read or ignored. Use audio tags sparingly, plus punctuation. Check the current character limit for the model. |
| ElevenLabs Multilingual v2 / Flash v2.5 | plain text + inline <break time="0.5s"/> |
Breaks up to 3 s. Too many in one request makes delivery unstable. Audio tags are v3-only. |
| OpenAI TTS | plain text | No SSML. Use punctuation for pacing. ≤ 4096 chars per request. |
| Google Cloud TTS | SSML | Full SSML supported: <break>, <emphasis>, <prosody rate="…" pitch="…">. |
| Azure (neural) | SSML with <voice> + mstts:express-as styles |
Style + degree work for some voices; check voice's supported styles. |
| Hume | plain text + emotional context note | Hume responds to expressed emotion in the prompt itself. |
| Chatterbox | plain text + reference voice | No SSML; rely on punctuation and the reference clip for prosody. |
Steps
- Read script. Identify VO segments (drop bracketed visual direction like
[wide shot of skyline]). - Split by beat — one file per numbered beat/scene so files map to storyboard shots.
- Normalise:
- Spell out unusual abbreviations (
API→ keep,e.g.→ "for example") if the model is known to mangle them. - Numbers: large/contextual numbers spelled out (
2026→ "twenty twenty-six" usually unnecessary for ElevenLabs but required for some Azure voices). - Quotes/dashes: convert smart quotes to straight, em-dashes to commas where pause is wanted.
- Spell out unusual abbreviations (
- Insert pacing markers per the model's supported syntax. Be conservative — a comma is usually enough.
- Save:
- SSML models:
scripts/tts/<model>/<NN>-<slug>.ssml - Plain models:
scripts/tts/<model>/<NN>-<slug>.txt
- SSML models:
- Emit a
scripts/tts/<model>/INDEX.mdlisting each file, character count, estimated duration (words ÷ ~150 words per minute, a typical narration rate; adjust after the first take), and the voice ID to use.
Discipline
- Don't add SSML to models that don't support it — it'll be read aloud literally.
- Don't merge multiple beats into one file even if they're short; that breaks the shot mapping.
- Show the first generated file to the user before generating the rest, so they can adjust style.
- Keep each request under the model's character limit; chunk if necessary and number
01a,01b.
04 同仓库更多 Skills
no-description
暂无简介
good-skill
Fixture skill that satisfies every rule.
broken-link
Links to a reference file that does not exist.
Bad_Name
Name violates the kebab-case rule and does not match the directory.
skill-authoring
Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.
weigh-bags
Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts/reconcile.py.