TTS
Implement text-to-speech (TTS) capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to convert text into natural-sounding speech, create audio content, build voice-enabled applications, or generate spoken audio files. Supports multiple voices, adjustable speed, and various audio formats.
npx skills add jjyaoao/HelloAgents --skill TTS --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# TTS (Text to Speech) Skill This skill guides the implementation of text-to-speech (TTS) functionality using the z-ai-web-dev-sdk package, enabling conversion of text into natural-sounding speech audio. ## Skills Path **Skill Location**: `{project_path}/skills/TTS` This skill is located at the above path in your project. **Reference Scripts**: Example test scripts are available in the `{Skill Location}/scripts/` directory for quick testing and reference. See `{Skill Location}/scripts/tts.ts` for a working example. ## Overview Text-to-Speech allows you to build applications that generate spoken audio from text input, supporting various voices, speeds, and output formats for diverse use cases. **IMPORTANT**: z-ai-web-dev-sdk MUST be used in backend code only. Never use it in client-side code. ## API Limitations and Constraints Before implementing TTS functionality, be aware of these important limitations: ### Input Text Constraints - **Maximum length**: 1024 characters per request - Text exceeding this limit must be split into smaller chunks ### Audio Parameters - **Speed range**: 0.5 to 2.0 - 0.5 = half speed (slower) - 1.0 = normal speed (default) - 2.0 = double speed (faster) - *
- Skills Path
- Overview
- API Limitations and Constraints
- Input Text Constraints
- Audio Parameters
- Format and Streaming
- Best Practice for Long Text
- Prerequisites
- CLI Usage (For Simple Tasks)
- Basic TTS
- Different Voices and Speed
- Different Output Formats
- Streaming Output
- CLI Parameters
Convert text to speech (default WAV format) z-ai tts --input "Hello, world" --output ./hello.wav Using short options z-ai tts -i "Hello, world" -o ./hello.wav Use specific voice z-ai tts -i "Welcome to our service" -o ./welcome.wav --voice tongtong Adjust speech speed (0.5-2.0) z-ai tts -i "This is faster speech" -o ./fast.wav --speed 1.5 Slower speech z-ai tts -i "This is slower speech" -o ./slow.wav --speed 0.8
What does the TTS skill do?
Implement text-to-speech (TTS) capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to convert text into natural-sounding speech, create audio content, build voice-enabled applications, or generate spoken audio files. Supports multiple voices, adjustable speed, and various audio formats.
How do I install it?
Run `npx skills add jjyaoao/HelloAgents --skill TTS --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From jjyaoao/HelloAgents, a repository with 2,615 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
