Zai Tts

by aahl47edd621dff4No license162 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 3 weeks ago

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.

Instructions onlyDesign & Creative
AI-generated overview

Generates text-to-speech audio files from text using the GLM-TTS service via the uvx zai-tts command.

What it does
This skill converts text or a text file into spoken audio by invoking the uvx zai-tts command-line tool, which calls the GLM-TTS service. It writes the result to a .wav file and supports options for speed, volume, and voice selection, including listing available voices. It can also use custom cloned voices created on the audio.z.ai website.
When to use it
Use it when a user asks for audio or voice output, or when content should be heard rather than read, such as for multitasking, accessibility, podcasts, driving, or cooking. It also applies when pre-cloned voices are needed for speech.
Requirements
Requires the uvx tool to run the zai-tts package, network access to the GLM-TTS service, and the environment variables ZAI_AUDIO_USERID and ZAI_AUDIO_TOKEN obtained by logging into audio.z.ai. Custom voices require prior voice cloning on that website. The skill ships no scripts; it provides instructions only.

Zai-TTS

Generate high-quality text-to-speech audio using GLM-TTS service via the uvx zai-tts command. Before using this skill, you need to configure the environment variables ZAI_AUDIO_USERID and ZAI_AUDIO_TOKEN, which can be obtained by login audio.z.ai and executing localStorage['auth-storage'] in the console via F12 Developer Tools.

Usage

shell
uvx zai-tts -t "{msg}" -o {tempdir}/{filename}.wavuvx zai-tts -f path/to/file.txt -o {tempdir}/{filename}.wav

Changing speed, volume

shell
uvx zai-tts -t "{msg}" -o {tempdir}/{filename}.wav --speed 1.5uvx zai-tts -t "{msg}" -o {tempdir}/{filename}.wav --speed 1.5 --volume 2

Changing the voice

shell
uvx zai-tts -t "{msg}" -o {tempdir}/{filename}.wav --voice system_002

Available voices

system_001: Lila. A cheerful, standard-pronunciation female voice system_002: Chloe. A gentle, elegant, intelligent female voice system_003: Ethan. A sunny, standard-pronunciation male voice

Retrieve all available voices using shell commands:

shell
uvx zai-tts -l

If you want to use custom voices, please complete voice cloning on the website audio.z.ai first.

Source and attribution

Source:aahl/skillsinskills/zai-ttsat commit47edd62

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal