speech
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.
Security Assessment
About speech
The speech skill generates spoken audio for a project, such as narration, product demo voiceover, IVR phone prompts, and accessibility reads, via the OpenAI Audio API. It runs a bundled CLI (scripts/text_to_speech.py) for deterministic, reproducible runs and defaults to the gpt-4o-mini-tts-2025-12-15 model with built-in voices. Custom voice creation is explicitly out of scope. It is intended for text-to-speech narration or voiceover, accessibility reads, audio prompts, and batch speech generation, and requires OPENAI_API_KEY for live calls.
The workflow first decides intent using a decision tree: multiple lines or many desired outputs route to a batch run, otherwise a single clip. It collects inputs up front (the exact verbatim text, desired voice, delivery style, format, and constraints), and for batches writes a temporary JSONL under tmp/ with one job per line, runs once, then deletes it. Intermediate files go under tmp/speech/ and final artifacts under output/speech/, with --out or --out-dir controlling paths. Dependencies are installed with uv (uv pip install openai) or pip if uv is unavailable, and all API calls use the OpenAI Python SDK rather than raw HTTP. If OPENAI_API_KEY is missing, the skill guides the user to create a key and set it as an environment variable without ever pasting the full key into chat.
Documented defaults and rules include using gpt-4o-mini-tts-2025-12-15 unless another model is requested, defaulting to the cedar voice (preferring marin for a brighter tone), supporting instructions only on GPT-4o mini TTS models (not tts-1 or tts-1-hd), a 4096-character input limit per request (longer text must be chunked), and a 50 requests-per-minute cap enforced by the CLI's --rpm flag. It requires disclosing to end users that the voice is AI-generated and forbids modifying the bundled script. The skill introduces an instruction-augmentation approach that reformats user direction into a short labeled spec (voice affect, tone, pacing, emotion, pronunciation, pauses, emphasis, delivery) without rewriting the input text or inventing new personas. It validates important clips for intelligibility, pacing, and pronunciation, iterating with a single targeted change. Numerous reference files cover the CLI, audio API parameters and voice list, prompting best practices, sample prompts, and per-use-case templates for narration, voiceover, IVR, and accessibility.
FAQ
What does the speech skill require to run live?
OPENAI_API_KEY must be set for live API calls. If the key is missing, the skill guides the user to create one in the OpenAI platform UI and set it as an environment variable, without ever asking them to paste the full key into chat.
Which model and voice are used by default?
It defaults to the gpt-4o-mini-tts-2025-12-15 model and the cedar voice, preferring marin for a brighter tone. Only built-in voices are supported; custom voice creation is out of scope.
Is there a limit on input text length or request rate?
Yes. Input must be 4096 characters or fewer per request, so longer text must be split into chunks, and the rate is capped at 50 requests per minute, which the CLI enforces via its --rpm flag (capped at 50).
When should I use a batch run instead of a single clip?
Use a batch when the user provides multiple lines or prompts or wants many output files; otherwise generate a single clip. For batches, the skill writes a temporary JSONL under tmp/ with one job per line, runs once, then deletes it.
Do the instructions support styling the delivery?
Yes, instructions are supported for GPT-4o mini TTS models (but not tts-1 or tts-1-hd). The skill reformats user direction into a short labeled spec covering voice affect, tone, pacing, emotion, pronunciation, pauses, emphasis, and delivery, without rewriting the input text or inventing new personas.
All Files
15 filesInstall speech
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
openai/skills