Zai Tts

aahl/skills/skills/zai-tts

作者 aahl47edd621dff4无许可证162 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3周前更新

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.

仅含说明Design & Creative
AI 生成的概览

通过 uvx zai-tts 命令调用 GLM-TTS 服务,将文本转换为语音音频文件。

功能
该技能通过调用 uvx zai-tts 命令行工具,将文本或文本文件转换为语音,并输出为 .wav 文件。它支持调整语速、音量和选择音色,并可列出可用音色。它也能使用在 audio.z.ai 网站上预先克隆的自定义音色。
适用场景
当用户要求音频或语音输出,或内容需要被朗读而非阅读时使用,例如多任务处理、无障碍、播客、驾驶或烹饪场景。也适用于需要使用预先克隆音色的语音合成。
运行要求
需要 uvx 工具来运行 zai-tts 包,需要访问 GLM-TTS 服务的网络连接,以及通过登录 audio.z.ai 获取的环境变量 ZAI_AUDIO_USERID 和 ZAI_AUDIO_TOKEN。自定义音色需先在该网站完成声音克隆。该技能不附带脚本,仅提供说明。

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.

来源与署名

来源:aahl/skills位于skills/zai-tts提交47edd62

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架