Skills for Real Engineers. Straight from my .agents directory.
openai-tts
Agent skill frombenchflow-ai/skillsbench
OpenAI Text-to-Speech API for high-quality speech synthesis. Use for generating natural-sounding audio from text with customizable voices and tones.
How to install openai-tts
npx skills add benchflow-ai/skillsbench# or add only this skill to Claude Code: copy the folder
tasks-extra/pg-essay-to-audiobook/environment/skills/openai-tts/
# into
~/.claude/skills/openai-tts/ (all projects)
.claude/skills/openai-tts/ (one project)
1# OpenAI Text-to-Speech23Generate high-quality spoken audio from text using OpenAI's TTS API.45## Authentication67The API key is available as environment variable:8```bash9OPENAI_API_KEY10```1112## Models1314- `gpt-4o-mini-tts` - Newest, most reliable. Supports tone/style instructions.15- `tts-1` - Lower latency, lower quality16- `tts-1-hd` - Higher quality, higher latency1718## Voice Options1920Built-in voices (English optimized):21- `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`22- `nova`, `onyx`, `sage`, `shimmer`, `verse`23- `marin`, `cedar` - **Recommended for best quality**2425Note: `tts-1` and `tts-1-hd` only support: alloy, ash, coral, echo, fable, onyx, nova, sage, shimmer.2627## Python Example2829```python30from pathlib import Path31from openai import OpenAI3233client = OpenAI() # Uses OPENAI_API_KEY env var3435# Basic usage36with client.audio.speech.with_streaming_response.create(37 model="gpt-4o-mini-tts",38 voice="coral",39 input="Hello, world!",40) as response:41 response.stream_to_file("output.mp3")4243# With tone instructions (gpt-4o-mini-tts only)44with client.audio.speech.with_streaming_response.create(45 model="gpt-4o-mini-tts",46 voice="coral",47 input="Today is a wonderful day!",48 instructions="Speak in a cheerful and positive tone.",49) as response:50 response.stream_to_file("output.mp3")51```5253## Handling Long Text5455For long documents, split into chunks and concatenate:5657```python58from openai import OpenAI59from pydub import AudioSegment60import tempfile61…
Excerpt shown under the repository's Apache-2.0 license.
More skills in skillsbench
Similar skill repositories
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
