TTS

Convert text into WAV, MP3, or PCM speech audio with adjustable speed and volume.

1|Updated Aug 3, 2025
One-click install
npx skills add https://github.com/eesha000009-dev/Exam-Prep100 --skill tts-eesha000009-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: TTS
Source: https://github.com/eesha000009-dev/Exam-Prep100/tree/main/skills/TTS
Command: npx skills add https://github.com/eesha000009-dev/Exam-Prep100 --skill tts-eesha000009-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert written text into playable or downloadable audio so applications can provide spoken output for users, automate narration, and improve accessibility.

Core Features & Use Cases

  • Multiple Voices & Languages: Choose from several built-in voices to match tone and language requirements.
  • Adjustable Playback: Control speed (0.5–2.0) and volume (>0 up to 10) for narration and prompts.
  • Flexible Output: Generate WAV, MP3, or PCM audio, stream PCM for real-time use, and save files for podcasts, audiobooks, e-learning, IVR, or accessibility features.

Quick Start

Generate a WAV audio file from the text "Hello, world!" using the tongtong voice at normal speed and save it to ./output.wav.

Frequently Asked Questions about TTS

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

FAQPage Schema
How do I convert text to speech audio for a backend application?

To convert text to speech audio, you provide a string up to 1024 characters, select a supported voice, and configure speed and volume. The Skill synthesizes the text and returns a standard Response requiring arrayBuffer conversion to save as a playable audio file.

What audio formats can I generate when synthesizing speech?

You can generate WAV, MP3, or PCM audio files when synthesizing speech. WAV and MP3 are available for standard file generation, while PCM is the only format supported for real-time audio streaming applications.

Can I stream text-to-speech audio in real time?

You can stream text-to-speech audio in real time using the PCM format. This allows you to process audio chunks sequentially for immediate playback rather than waiting for the entire audio file to generate.

What are the input limits for text-to-speech generation?

Text-to-speech generation has a 1024-character input limit per request. You can adjust playback speed between 0.5 and 2.0, and set volume greater than 0 up to 10 to customize the generated audio output.

How do I handle the response when generating speech audio?

When generating speech audio, the API returns a standard Response object. You must perform an arrayBuffer conversion on this Response object to extract the raw audio data before saving it to a file or transmitting it to your end users.

Does text-to-speech synthesis work for accessibility and e-learning platforms?

Text-to-speech synthesis works for accessibility, e-learning, IVR systems, and podcasts. You can choose from multiple built-in voices and languages to match your platform's specific tone and narration requirements.