gtts

Convert text to speech with gTTS and generate MP3 audio files.

4|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill gtts-generalreasoning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gtts
Source: https://github.com/GeneralReasoning/env-skillsbench/tree/main/pg-essay-to-audiobook/environment/skills/gtts
Command: npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill gtts-generalreasoning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Transforming plain text into natural-sounding speech is essential for creating audiobooks, podcasts, and accessible content without expensive recording sessions. This Skill provides a simple, programmatic way to convert text to audio using gTTS, with optional chunking for long documents and audio concatenation via pydub.

Core Features & Use Cases

  • Convert text to speech using gTTS with optional language settings
  • Handle long documents by chunking at sentence boundaries and concatenating audio with pydub
  • Produce downloadable MP3 audio suitable for books, tutorials, and narration

Quick Start

Install the required Python packages and provide your text to generate an output MP3 file.

Frequently Asked Questions about gtts

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

FAQPage Schema
How do I convert text to speech and generate an MP3 file?

You can convert text to speech by using gTTS to synthesize the text and output a downloadable MP3 audio file. This process provides a programmatic way to create spoken audio without manual recording sessions.

Can I use gTTS to create audio for long texts like audiobooks?

Yes, gTTS handles long texts for audiobook creation by chunking the document at sentence boundaries. It then concatenates the resulting audio segments with pydub to form a seamless MP3 output.

What is the best way to turn a large text document into podcast narration?

The best way to produce podcast narration from large documents is to use gTTS for text-to-speech conversion combined with pydub for audio concatenation. This approach chunks long texts and joins them into a continuous MP3 file.

Does this text-to-speech method support different languages?

Yes, gTTS supports optional language settings for text-to-speech conversion. You can specify the desired language when generating the MP3 audio file to produce localized spoken content.

How does audio concatenation with pydub work for long text-to-speech outputs?

Audio concatenation with pydub works by joining individual MP3 audio chunks generated from sentence-level text segments. This process stitches the pieces together to form a single, seamless audio output for long documents.

What do I need to start generating audiobooks from text?

To start generating audiobooks from text, you need the required Python packages for gTTS and pydub installed in your environment. You then provide your text input to generate the output MP3 file.