TTS

Convert text to speech audio in WAV, MP3, or PCM formats using the z-ai-web-dev-sdk.

Updated Jan 7, 2026
One-click install
npx skills add https://github.com/ashishkushwaha-mpu/ChocoWrap --skill tts-ashishkushwaha-mpu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: TTS
Source: https://github.com/ashishkushwaha-mpu/ChocoWrap/tree/main/skills/TTS
Command: npx skills add https://github.com/ashishkushwaha-mpu/ChocoWrap --skill tts-ashishkushwaha-mpu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires z-ai-web-dev-sdk, and includes scripts (resource) components.

What problem does it solve?

Convert text to speech using the z-ai-web-dev-sdk to generate natural-sounding audio for applications needing narration, accessibility, and dynamic voice responses.

Core Features & Use Cases

  • Text-to-speech conversion with multiple voices and adjustable speed.
  • Backend-first implementation using the z-ai-web-dev-sdk to generate audio in WAV, MP3, or PCM formats.
  • Real-world use cases include accessibility narrations, AI chat assistants, e-learning content, and dynamic voice responses.

Quick Start

Install dependencies and run the included sample to generate TTS audio. See the Skill Location's scripts/tts.ts for a working example and replace input text as needed.

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 in a Node.js backend application?

To convert text to speech in a backend application, this Skill uses the z-ai-web-dev-sdk to generate natural-sounding audio. You can run the included scripts/tts.ts sample to produce audio files for dynamic voice responses.

Can I generate text-to-speech audio in WAV or MP3 formats?

Yes, you can generate text-to-speech audio in WAV, MP3, or PCM formats. The backend implementation processes your input text and outputs the audio file in your selected format for narration or accessibility use cases.

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

Text-to-speech generation enforces a 1024-character input limit per request. Additional constraints include a speed range of 0.5 to 2.0 and a volume range of 0 to 10, ensuring proper audio synthesis without errors.

Does this text-to-speech solution support multiple voices and adjustable speed?

Yes, this text-to-speech solution supports multiple voices and adjustable speed settings. You can customize the audio output by selecting different voices and modifying the speed parameter within the supported 0.5 to 2.0 range.

Do I need the z-ai-web-dev-sdk installed to use this text-to-speech Skill?

Yes, you need the z-ai-web-dev-sdk installed as a dependency to use this text-to-speech Skill. The backend scripts rely on this SDK to handle audio generation, process input text, and manage error handling properly.