Openai Tts

OpenAI Text-to-Speech API for high-quality speech synthesis. Use for generating natural-sounding audio from text with customizable voices and tones.

49 stars 5 forksImages, Video & Audio

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add UCSB-NLP-Chang/Skill-Usage --skill openai-tts
Manual install
git clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/pg-essay-to-audiobook/environment/skills/openai-tts ~/.claude/skills/openai-tts

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# OpenAI Text-to-Speech

Generate high-quality spoken audio from text using OpenAI's TTS API.

## Authentication

The API key is available as environment variable:
```bash
OPENAI_API_KEY
```

## Models

- `gpt-4o-mini-tts` - Newest, most reliable. Supports tone/style instructions.
- `tts-1` - Lower latency, lower quality
- `tts-1-hd` - Higher quality, higher latency

## Voice Options

Built-in voices (English optimized):
- `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`
- `nova`, `onyx`, `sage`, `shimmer`, `verse`
- `marin`, `cedar` - **Recommended for best quality**

Note: `tts-1` and `tts-1-hd` only support: alloy, ash, coral, echo, fable, onyx, nova, sage, shimmer.

## Python Example

```python
from pathlib import Path
from openai import OpenAI

client = OpenAI()  # Uses OPENAI_API_KEY env var

# Basic usage
with client.audio.speech.with_streaming_response.create(
    model="gpt-4o-mini-tts",
    voice="coral",
    input="Hello, world!",
) as response:
    response.stream_to_file("output.mp3")

# With tone instructions (gpt-4o-mini-tts only)
with client.audio.speech.with_streaming_response.create(
    model="gpt-4o-mini-tts",
    voice="coral",
    input="Today is a wonderful day!",
    instructions="Speak in a cheerful and positive tone.",
) as response:
    response.stream_to_file("output.mp3")
```

## Handling Long Text

For long documents, split into chunks and concatenate:
Read the full skill on GitHub

Details

Skill name
openai-tts
Path
tasks/pg-essay-to-audiobook/environment/skills/openai-tts/SKILL.md
Repo updated
8 April 2026

FAQ

What does the Openai Tts skill do?

OpenAI Text-to-Speech API for high-quality speech synthesis. Use for generating natural-sounding audio from text with customizable voices and tones.

How do I install the Openai Tts skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill openai-tts. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Openai Tts popular?

It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.

Related skills

Pubchem Database

49

UCSB-NLP-Chang/Skill-Usage

Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.

Databases

Pymatgen

49

UCSB-NLP-Chang/Skill-Usage

Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.

Research & Science

Rdkit

49

UCSB-NLP-Chang/Skill-Usage

Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.

Frontend & Design

Pause Detector

49

UCSB-NLP-Chang/Skill-Usage

Detect pauses and silence in audio using local dynamic thresholds. Use when you need to find natural pauses in lectures, board-writing silences, or breaks between sections. Uses local context comparison to avoid false positives from volume variation.

Images, Video & Audio

Object Counter

49

UCSB-NLP-Chang/Skill-Usage

Count occurrences of an object in the image using computer vision algorithm.

Images, Video & Audio

Report Generator

49

UCSB-NLP-Chang/Skill-Usage

Generate compression reports for video processing. Use when you need to create structured JSON reports with duration statistics, compression ratios, and segment details after video processing.

Images, Video & Audio

Browse the most popular Claude skills, all images, video & audio skills, or write your own with the skills generator.