TTS

Converts text to speech audio via the z-ai-web-dev-sdk.

Updated Apr 19, 2025
One-click install
npx skills add https://github.com/SamuelRM25/app-visitador --skill tts-samuelrm25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: TTS
Source: https://github.com/SamuelRM25/app-visitador/tree/main/skills/TTS
Command: npx skills add https://github.com/SamuelRM25/app-visitador --skill tts-samuelrm25

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Convert text into natural-sounding speech audio to power voice-enabled applications, accessibility features, and content narration.

Core Features & Use Cases

  • Multiple voices: choose from several voices and adjust speed and volume for expressive narration.
    • Flexible formats: generate WAV, MP3, or PCM outputs with optional streaming support for large or real-time pipelines.
  • Use Case: build dynamic audio responses for chatbots, create narrated lessons for an e-learning, or add accessibility audio versions of text content.

Quick Start

Use the tts.ts script in this skill directory to generate audio from sample text and save it to a file.

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 on the backend?

To convert text to speech on the backend, you can use a script that calls a web development SDK to synthesize speech. This approach processes textual input and generates audio files directly within your server environment.

What audio formats can I generate for text-to-speech conversion?

Text-to-speech conversion can generate WAV, MP3, and PCM audio formats. These flexible output options support various integration needs, including optional streaming for real-time pipelines and large-scale content narration.

Can I adjust the voice speed and volume for speech synthesis?

Yes, you can adjust voice speed and volume for speech synthesis. The system supports multiple voices, allowing you to customize audio output for expressive narration tailored to your specific application requirements.

Does text-to-speech synthesis work for real-time streaming pipelines?

Yes, text-to-speech synthesis supports real-time streaming pipelines. It offers optional streaming constraints alongside flexible WAV, MP3, and PCM output formats to handle large audio generation or dynamic chatbot responses.

What is the character limit for text-to-speech input?

The character limit for text-to-speech input is 1024 characters. This constraint ensures reliable processing when synthesizing speech audio for voice-enabled applications and accessibility features.

Why does my text-to-speech script fail on the frontend?

Your text-to-speech script fails on the frontend because the underlying SDK enforces backend-only usage. You must execute the speech synthesis script within a server environment to generate audio successfully.