К основному содержанию
скилл Claude Code CX Codex Cursor GitHub Copilot официальный · OpenAI

speech · openai — скилл для Claude Code: что делает и как установить

Генерация озвучки и голосовых подсказок через OpenAI Audio API. Пригодится для озвучивания демо, реплик IVR или чтения текста вслух.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add openai/skills --skill speech -a claude-code
Открыть на GitHub

Что делает speech

Скилл генерирует речь из текста через скрипт scripts/text_to_speech.py, обращаясь к OpenAI Audio API. По умолчанию используется модель gpt-4o-mini-tts-2025-12-15 и голос cedar (или marin для более яркого тона). Для одиночных фраз скилл запускает генерацию сразу, а серию реплик объединяет во временный JSONL-файл в каталоге tmp/speech/.

Под капотом работает официальная библиотека openai, которую ставят через uv pip install openai или python3 -m pip install openai. Для работы нужен ключ в переменной окружения OPENAI_API_KEY. Готовые аудиофайлы сохраняются в output/speech/ через флаги --out или --out-dir.

Создавать собственные кастомные голоса здесь нельзя: скилл работает только со встроенными пресетами. Длина текста ограничена 4096 символами на запрос, а скрипт аппаратно держит лимит в 50 запросов в минуту.

Какие задачи решает

  • озвучить демо-ролик или обучающее видео
  • сгенерировать пачку реплик для IVR или автоответчика
  • подготовить аудиодорожки для доступности интерфейса
  • разбить длинный текст на фрагменты до 4096 знаков для озвучки

Примеры запросов агенту

  • Озвучь этот текст голосом cedar для демо-ролика и сохрани в output/speech/demo.mp3
  • Сделай пачку IVR-подсказок из файла prompts.jsonl с голосом marin
  • Озвучь вступление к статье, темп сделай спокойным, а тон уверенным

Как установить speech

1Через Skills CLI (Vercel)

npx skills add openai/skills --skill speech -a claude-code

2Вручную: положить файлы

~/.claude/skills/speech/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/speech/

Из того же набора20

Весь набор →
pdf официальный openai Скилл для чтения, создания и проверки PDF, где важно, как выглядит страница. Пригодится, когда агент собирает документ и должен сам увидеть результат. Claude Code CX Codex Cursor +1 13 400установок gh-fix-ci официальный openai Находит упавшие проверки GitHub Actions в пулл-реквесте, собирает логи ошибок и готовит план исправлений. Скилл применяет правки только после подтверждения. Claude Code CX Codex Cursor +1 11 400установок openai-docs официальный openai Скилл ищет актуальные материалы OpenAI и помогает отвечать по API, Codex, моделям и обновлению промптов с опорой на официальную документацию. Claude Code CX Codex Cursor +1 6 100установок imagegen официальный openai Скилл создаёт и редактирует растровые изображения: иллюстрации, текстуры, спрайты и мокапы. Нужен, когда результатом должен стать bitmap-файл. Claude Code CX Codex Cursor +1 5 700установок jupyter-notebook официальный openai Создаёт чистые Jupyter-ноутбуки для экспериментов и пошаговых руководств через готовые шаблоны и вспомогательный скрипт. Помогает избежать ручной сборки сырого JSON. Claude Code CX Codex Cursor +1 5 600установок skill-creator официальный openai Руководство по созданию и обновлению скиллов для ИИ-агентов. Помогает упаковать рабочие процессы, скрипты и документацию без лишней траты токенов. Claude Code CX Codex Cursor +1 4 900установок gh-address-comments официальный openai Скилл помогает найти открытый pull request текущей ветки, разобрать комментарии ревью и применить выбранные исправления через gh. Claude Code CX Codex Cursor +1 4 800установок cloudflare-deploy официальный openai Скилл помогает выбрать сервис Cloudflare и подготовить деплой приложения или инфраструктуры через Workers, Pages и связанные продукты. Claude Code CX Codex Cursor +1 4 300установок

Другие версии speech

Похожие

voicestudio debpalash Скилл связывает агента с VoiceStudio: генерирует речь, расшифровывает аудио и запускает сценарии озвучки через REST API или MCP. Claude Code CX Codex Cursor +1 1 700установок find-your-level rohitg00 Скилл проводит тест по AI/ML из 10 вопросов и говорит, с какой фазы начинать курс AI Engineering from Scratch. Claude Code CX Codex Cursor +1 4 500установок start-learning rohitg00 Он проводит вводный опрос и placement quiz для курса AI Engineering from Scratch, а затем создаёт LEARNING.md с планом обучения. Claude Code CX Codex Cursor +1 4 500установок srdf earthtojake Скилл помогает создавать и проверять SRDF для MoveIt2 поверх URDF. Пригодится для планирования движений, групп и семантики робота. Claude Code CX Codex Cursor +1 10 300установок gemini-agents-api официальный google Управляет ресурсами Agent в Gemini Enterprise Agent Platform через API. Нужен для создания и настройки агентов до запуска диалогов. Claude Code Gemini CLI CX Codex 9 466установок google-cloud-waf-sustainability официальный google Оценивает Google Cloud-нагрузки по устойчивости: помогает снижать углеродный след и расход энергии. Нужен при проектировании и настройке облачной архитектуры. Claude Code Gemini CLI CX Codex 9 346установок skill-creator официальный anthropics Помогает создать новый скилл, доработать существующий и проверить результат через тестовые промпты и оценки. Claude Code Claude.ai 414 180установок writing-for-agents Matt Pocock Помогает писать скиллы и документы с инструкциями для агентов. Пригодится при правках AGENTS.md, CLAUDE.md и связанных справочных файлов. Claude Code 466 719установок

Вопросы о speech

Как установить speech в Claude Code?

Выполните команду npx skills add openai/skills --skill speech -a claude-code. Для работы генерации потребуется пакет openai в Python и ключ в OPENAI_API_KEY.

Что делает скилл speech?

Скилл запускает скрипт scripts/text_to_speech.py и передаёт текст в OpenAI Audio API, получая готовые аудиофайлы с выбранными голосами и интонациями.

Можно ли обучить или загрузить свой голос?

Нет, скилл поддерживает только встроенные голоса OpenAI. Создание собственных голосов не поддерживается.

Исходный текст

SKILL.md · Apache-2.0
---
name: "speech"
description: "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."
---


# 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
1. Decide intent: single vs batch (see decision tree above).
2. Collect inputs up front: exact text (verbatim), desired voice, delivery style, format, and any constraints.
3. If batch: write a temporary JSONL under tmp/ (one job per line), run once, then delete the JSONL.
4. Augment instructions into a short labeled spec without rewriting the input text.
5. Run the bundled CLI (`scripts/text_to_speech.py`) with sensible defaults (see references/cli.md).
6. For important clips, validate: intelligibility, pacing, pronunciation, and adherence to constraints.
7. Iterate with a single targeted change (voice, speed, or instructions), then re-check.
8. 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 `--out` or `--out-dir` to control output paths; keep filenames stable and descriptive.

## Dependencies (install if missing)
Prefer `uv` for dependency management.

Python packages:
```
uv pip install openai
```
If `uv` is unavailable:
```
python3 -m pip install openai
```

## Environment
- `OPENAI_API_KEY` must be set for live API calls.

If the key is missing, give the user these steps:
1. Create an API key in the OpenAI platform UI: https://platform.openai.com/api-keys
2. Set `OPENAI_API_KEY` as an environment variable in their system.
3. 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-15` unless the user requests another model.
- Default voice: `cedar`. If the user wants a brighter tone, prefer `marin`.
- Built-in voices only. Custom voices are out of scope for this skill.
- `instructions` are supported for GPT-4o mini TTS models, but not for `tts-1` or `tts-1-hd`.
- Input length must be <= 4096 characters per request. Split longer text into chunks.
- Enforce 50 requests/minute. The CLI caps `--rpm` at 50.
- Require `OPENAI_API_KEY` before any live API call.
- Provide a clear disclosure to end users that the voice is AI-generated.
- Use the OpenAI Python SDK (`openai` package) 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 via `scripts/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.

© openai · Apache-2.0 · openai/skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой