speech
Skill1 starsChanged 31 days agoMITView on GitHub
Use when the user asks for text-to-speech narration or voiceover, accessibility reads, audio prompts, or batch speech generation via the OpenAI Audio API; run the bundled CLI (`scripts/text_to_speech.py`) with built-in voices and require `OPENAI_API_KEY` for live calls. Custom voice creation is out of scope.
- Reads credentials
- Installs packages
We split this skill into the rules it gives an agent
25 rules. 0 are common, 13 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
If the user provides multiple lines/prompts or wants many outputs -> batch
- Distinctive: line 22
If batch: write a temporary JSONL under tmp/ (one job per line), run once, then delete the JSONL.
- Very specific: line 24
Run the bundled CLI (scripts/text_to_speech.py) with sensible defaults (see references/cli.md).
- Very specific: line 30
Use tmp/speech/ for intermediate files (for example JSONL batches).
- Very specific: line 31
Write final artifacts under output/speech/ when working in this repo.
- Very specific: line 32
Use --out or --out-dir to control output paths.
- Very specific: line 35
Prefer uv for dependency management.
- Very specific: line 41
If uv is unavailable:
- Distinctive: line 49
If the key is missing, give the user these steps:
- Distinctive: line 50
Create an API key in the OpenAI platform UI: https://platform.openai.com/api-keys
- Distinctive: line 53
Never ask the user to paste the full key in chat.
- Distinctive: line 55
If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.
- Very specific: line 58
Use gpt-4o-mini-tts-2025-12-15 unless the user requests another model.
- Very specific: line 59
Default voice: cedar. If the user wants a brighter tone, prefer marin.
- Very specific: line 66
Use the OpenAI Python SDK (openai package) for all API calls.
- Very specific: line 67
Prefer the bundled CLI (scripts/text_to_speech.py) over writing new one-off scripts.
- Very specific: line 68
Never modify scripts/text_to_speech.py.
- Distinctive: line 74
If the user says "narration for a demo", you may add implied delivery constraints (clear, steady pacing, friendly tone).
- Distinctive: line 75
Do not introduce a new persona, accent, or emotional style the user did not request.
- Distinctive: line 90
Keep it short; add only details the user already implied or provided elsewhere.
- Distinctive: line 91
Do not rewrite the input text.
- Distinctive: line 92
If any critical detail is missing and blocks success, ask a question.
- Distinctive: line 114
Keep 4 to 8 short lines; avoid conflicting guidance.
- Distinctive: line 122
Use these modules when the request is for a specific delivery style.
- Very specific: line 132
If network approvals / sandbox settings are getting in the way: references/codex-network.md
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Speech Generation Skill
Generate spoken audio for the current project (narration, product demo voiceover, IVR prompts, accessibility reads). Defaults to gpt-4o-mini-tts-2025-12-15 and built-in voices, and prefers the bundled CLI for deterministic, reproducible runs.
When to use
- Generate a single spoken clip from text
- Generate a batch of prompts (many lines, many files)
Decision tree (single vs batch)
- If the user provides multiple lines/prompts or wants many outputs -> batch
- Else -> single
Workflow
- Decide intent: single vs batch (see decision tree above).
- Collect inputs up front: exact text (verbatim), desired voice, delivery style, format, and any constraints.
- If batch: write a temporary JSONL under tmp/ (one job per line), run once, then delete the JSONL.
- Augment instructions into a short labeled spec without rewriting the input text.
- Run the bundled CLI (
scripts/text_to_speech.py) with sensible defaults (see references/cli.md). - For important clips, validate: intelligibility, pacing, pronunciation, and adherence to constraints.
- Iterate with a single targeted change (voice, speed, or instructions), then re-check.
- Save/return final outputs and note the final text + instructions + flags used.
Temp and output conventions
- Use
tmp/speech/for intermediate files (for example JSONL batches); delete when done. - Write final artifacts under
output/speech/when working in this repo. - Use
--outor--out-dirto control output paths; keep filenames stable and descriptive.
Dependencies (install if missing)
Prefer uv for dependency management.
Python packages:
uv pip install openaiIf uv is unavailable:
python3 -m pip install openaiEnvironment
OPENAI_API_KEYmust be set for live API calls.
If the key is missing, give the user these steps:
- Create an API key in the OpenAI platform UI: https://platform.openai.com/api-keys
- Set
OPENAI_API_KEYas an environment variable in their system. - Offer to guide them through setting the environment variable for their OS/shell if needed.
- Never ask the user to paste the full key in chat. Ask them to set it locally and confirm when ready.
If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.
Defaults & rules
- Use
gpt-4o-mini-tts-2025-12-15unless the user requests another model. - Default voice:
cedar. If the user wants a brighter tone, prefermarin. - Built-in voices only. Custom voices are out of scope for this skill.
instructionsare supported for GPT-4o mini TTS models, but not fortts-1ortts-1-hd.- Input length must be <= 4096 characters per request. Split longer text into chunks.
- Enforce 50 requests/minute. The CLI caps
--rpmat 50. - Require
OPENAI_API_KEYbefore any live API call. - Provide a clear disclosure to end users that the voice is AI-generated.
- Use the OpenAI Python SDK (
openaipackage) for all API calls; do not use raw HTTP. - Prefer the bundled CLI (
scripts/text_to_speech.py) over writing new one-off scripts. - Never modify
scripts/text_to_speech.py. If something is missing, ask the user before doing anything else.
Instruction augmentation
Reformat user direction into a short, labeled spec. Only make implicit details explicit; do not invent new requirements.
Quick clarification (augmentation vs invention):
- If the user says "narration for a demo", you may add implied delivery constraints (clear, steady pacing, friendly tone).
- Do not introduce a new persona, accent, or emotional style the user did not request.
Template (include only relevant lines):
Voice Affect: <overall character and texture of the voice>
Tone: <attitude, formality, warmth>
Pacing: <slow, steady, brisk>
Emotion: <key emotions to convey>
Pronunciation: <words to enunciate or emphasize>
Pauses: <where to add intentional pauses>
Emphasis: <key words or phrases to stress>
Delivery: <cadence or rhythm notes>Augmentation rules:
- Keep it short; add only details the user already implied or provided elsewhere.
- Do not rewrite the input text.
- If any critical detail is missing and blocks success, ask a question; otherwise proceed.
Examples
Single example (narration)
Input text: "Welcome to the demo. Today we'll show how it works."
Instructions:
Voice Affect: Warm and composed.
Tone: Friendly and confident.
Pacing: Steady and moderate.
Emphasis: Stress "demo" and "show".Batch example (IVR prompts)
{"input":"Thank you for calling. Please hold.","voice":"cedar","response_format":"mp3","out":"hold.mp3"}
{"input":"For sales, press 1. For support, press 2.","voice":"marin","instructions":"Tone: Clear and neutral. Pacing: Slow.","response_format":"wav"}Instructioning best practices (short list)
- Structure directions as: affect -> tone -> pacing -> emotion -> pronunciation/pauses -> emphasis.
- Keep 4 to 8 short lines; avoid conflicting guidance.
- For names/acronyms, add pronunciation hints (e.g., "enunciate A-I") or supply a phonetic spelling in the text.
- For edits/iterations, repeat invariants (e.g., "keep pacing steady") to reduce drift.
- Iterate with single-change follow-ups.
More principles: references/prompting.md. Copy/paste specs: references/sample-prompts.md.
Guidance by use case
Use these modules when the request is for a specific delivery style. They provide targeted defaults and templates.
- Narration / explainer:
references/narration.md - Product demo / voiceover:
references/voiceover.md - IVR / phone prompts:
references/ivr.md - Accessibility reads:
references/accessibility.md
CLI + environment notes
- CLI commands + examples:
references/cli.md - API parameter quick reference:
references/audio-api.md - Instruction patterns + examples:
references/voice-directions.md - If network approvals / sandbox settings are getting in the way:
references/codex-network.md
Reference map
references/cli.md: how to run speech generation/batches viascripts/text_to_speech.py(commands, flags, recipes).references/audio-api.md: API parameters, limits, voice list.references/voice-directions.md: instruction patterns and examples.references/prompting.md: instruction best practices (structure, constraints, iteration patterns).references/sample-prompts.md: copy/paste instruction recipes (examples only; no extra theory).references/narration.md: templates + defaults for narration and explainers.references/voiceover.md: templates + defaults for product demo voiceovers.references/ivr.md: templates + defaults for IVR/phone prompts.references/accessibility.md: templates + defaults for accessibility reads.references/codex-network.md: environment/sandbox/network-approval troubleshooting.
Other versions18 projects use a version of this.
Word for word · 7
- openai/skills★ 27k100% same
- ingpoc/SKILLS★ 9100% same
- Adhamxon/claude-code-skills★ 2100% same
- nileshteji/skills★ 1100% same
- ailessonio/open-source-skills★ 0100% same
- belentani7/manus-ai-skill-pack★ 0100% same
- kushvinth/skills★ 0100% same
Edited · 2
- JetBrains/skills★ 38698% same
- VJDiPaola/skill-forge★ 096% same
Wrote their own version · 9
- QuixiAI/agi-memory★ 617same name
- QuixiAI/Hexis★ 617same name
- Scisaga/skills★ 8same name
- jhy0285/monofield★ 6same name
- Lengros/bennu★ 2same name
- jpoindexter/theft-kit★ 1same name
- scitex-ai/claude-code-telegrammer★ 1same name
- davidanthonyn/claude-skills★ 0same name
- hebertzhu/agent-foundry★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- cartesia-apiSkill
- cartesia-lineSkill
- agentsSkill
- dubbingSkill
- speech-engineSkill
- speech-to-textSkill
- text-to-speechSkill
- voice-changerSkill
- voice-isolatorSkill
- building-livekit-agentsSkill
- debugging-livekit-agentsSkill
- operating-livekit-agentsSkill
- reading-livekit-docsSkill
- running-livekit-simulationsSkill
- testing-livekit-agentsSkill
- writing-livekit-scenariosSkill
- transcribeSkill
- deploySkill
- initSkill
- talkSkill
- twilio-ai-agent-architectSkill
- twilio-call-recordingsSkill
- twilio-conference-callsSkill
- twilio-voice-conversation-relaySkill
- twilio-voice-outbound-callsSkill
- twilio-voice-twimlSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

