Back to Skills

zai-tts

Text-to-speech conversion using GLM-TTS service via the `uvx zai-tts` command for generating audio from text. Use when (1) User requests audio/voice output with the "tts" trigger or keyword. (2) Content needs to be spoken rather than read (multitasking, accessibility, podcast, driving, cooking). (3) Using pre-cloned voices for speech.

143stars17forksUpdated 7/7/2026

Security Assessment

Safe(100/100)
Security Score100/100

About zai-tts

Generate spoken-audio output from text using the GLM-TTS service, driven through the uvx zai-tts command. It fits requests that ask for voice or audio output (often via a "tts" trigger), situations where content is better heard than read — accessibility, multitasking, podcasts, driving, or cooking — and cases that reuse pre-cloned voices.

Before first use, the environment variables ZAI_AUDIO_USERID and ZAI_AUDIO_TOKEN must be set; the documentation explains these are obtained by logging into audio.z.ai and reading localStorage['auth-storage'] from the browser's F12 developer console. Once configured, the basic invocation takes either an inline string with -t or a text file with -f and writes a WAV file to a chosen output path with -o.

Optional flags adjust the delivery: --speed changes playback rate and --volume changes loudness, and --voice selects a speaker. Three built-in system voices are documented — system_001 (Lila, a cheerful standard-pronunciation female voice), system_002 (Chloe, a gentle, elegant, intelligent female voice), and system_003 (Ethan, a sunny standard-pronunciation male voice). The full list of available voices can be retrieved with -l, and users who want a custom voice must first complete voice cloning on the audio.z.ai website before referencing it. As a thin, well-scoped wrapper around the command-line tool, its behavior mirrors whatever the underlying zai-tts binary supports, and outputs are written to the chosen path for playback, sharing, or embedding elsewhere.

FAQ

What command does this skill use?

It generates audio through the uvx zai-tts command-line tool, backed by the GLM-TTS service.

What setup is required before using it?

You must set the ZAI_AUDIO_USERID and ZAI_AUDIO_TOKEN environment variables, obtained by logging into audio.z.ai and reading localStorage['auth-storage'] in the browser F12 console.

Can I control the speaking speed and volume?

Yes — the --speed and --volume flags adjust rate and loudness, for example --speed 1.5 --volume 2.

What voices are available?

Three built-in voices are documented: system_001 (Lila), system_002 (Chloe), and system_003 (Ethan); run uvx zai-tts -l to list all available voices.

Can I use my own custom voice?

Yes, but you must first complete voice cloning on the audio.z.ai website before selecting it with the --voice flag.

Install zai-tts

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

aahl/skills