speech

Convert text into speech audio via a bundled CLI with batch JSONL support.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/syl2042/codex_skills --skill speech-syl2042
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speech
Source: https://github.com/syl2042/codex_skills/tree/main/speech
Command: npx skills add https://github.com/syl2042/codex_skills --skill speech-syl2042

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Convert text into natural-sounding speech audio for narration, prompts, and accessibility.

Core Features & Use Cases

  • Built-in voices and a bundled CLI for deterministic runs.
  • Single- and batch-text-to-speech support, including IVR prompts, product demos, and accessibility reads.
  • Flexible inputs and outputs: text, voice, format, speed, and output paths; environment setup and API key requirements.

Quick Start

Install the required Python packages, set OPENAI_API_KEY, and run the bundled CLI to generate speech from your text.

Frequently Asked Questions about speech

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert text into natural-sounding speech audio for narration?

To convert text into natural-sounding speech audio, use the bundled CLI with built-in voices to generate single clips by providing input text, selecting a voice, and specifying an output path.

What's the best way to run batch text-to-speech processing for multiple prompts?

Batch text-to-speech processing is handled via JSONL file inputs through the CLI, allowing automated generation of multiple speech audio clips for IVR prompts or accessibility reads.

Do I need an OpenAI API key to generate AI voice audio?

Yes, you must set the OPENAI_API_KEY environment variable to enforce API access and generate AI voice audio using the OpenAI dependency.

Can I control speech speed and output formats for text-to-speech generation?

Yes, text-to-speech generation supports flexible inputs for voice selection, speed control, and output formats, allowing customization for product demos and narration.

Does built-in retry logic handle text-to-speech API failures?

Yes, the text-to-speech CLI includes built-in retry logic to handle API failures, ensuring deterministic runs and reliable audio output generation.