openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > 🗣️ Text-to-speech using GLM-TTS for generating audio

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 w...

媒体与内容

作者:Alone @al-one

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.3

统计:⭐ 2 · 252 · 0 current installs · 0 all-time installs

2

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :良性

Package:al-one/zai-tts

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill's requirements and runtime instructions are consistent with a CLI-based text-to-speech integration that needs the uvx binary and an auth token for audio.z.ai, but it asks you to extract a session token from your browser localStorage which is sensitive and worth caution.

目的

Name/description (GLM-TTS via uvx) match the declared requirements: uvx binary and ZAI_AUDIO_USERID / ZAI_AUDIO_TOKEN environment variables are exactly what a CLI client to audio.z.ai would need.

说明范围

SKILL.md only instructs running the uvx CLI with arguments and how to obtain credentials. It explicitly tells users to extract auth info from browser localStorage (JSON.parse(localStorage['auth-storage']).state.token), which is sensitive but directly related to authenticating to audio.z.ai; the instructions do not attempt to read other system files or unrelated credentials.

安装机制

Install spec uses common package managers (brew or pip) for a package named 'uv' that provides uvx. Having both brew and pip installers is redundant but not inherently risky; no arbitrary download URLs or extracted archives are present.

证书

Only two env vars (userId and token) are required, and the token is the primary credential — appropriate for a remote TTS service. However the recommended method to obtain them (copying a session token from localStorage) can encourage insecure handling of session tokens and may expose long-lived credentials if not managed carefully.

持久

Skill does not request always:true, does not declare config paths, and does not modify other skills; autonomous invocation is default but not excessive for this type of integration.

综合结论

This skill is coherent for using audio.z.ai via the uvx CLI, but be careful with the auth token. The SKILL.md asks you to copy a token from browser localStorage — treat that token like a password: don't paste it into public places, prefer creating a scoped API key if the service provides one, and store it in a secure credential store rather than a plain environment file if possible. Before installing, verify the source of the 'uv' package (bre…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「🗣️ Text-to-speech using GLM-TTS for generating audio」。简介:Text-to-speech conversion using GLM-TTS service via the `uvx zai-tts` command f…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/al-one/zai-tts/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: zai-tts
description: 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.
homepage: https://github.com/aahl/zai-tts
metadata:
  {
    "openclaw":
      {
        "emoji": "🗣️",
        "requires": { "bins": ["uvx"], "env": ["ZAI_AUDIO_USERID", "ZAI_AUDIO_TOKEN"] },
        "primaryEnv": "ZAI_AUDIO_TOKEN",
        "install":
          [
            {
              "id": "userid",
              "kind": "input",
              "label": "User ID",
              "description": "Login `audio.z.ai` and executing `JSON.parse(localStorage['auth-storage']).state.user.userId` in the console via F12 Developer Tools",
              "secret": false,
              "envVar": "ZAI_AUDIO_USERID",
            },
            {
              "id": "token",
              "kind": "input",
              "label": "Auth Token",
              "description": "Login `audio.z.ai` and executing `JSON.parse(localStorage['auth-storage']).state.token` in the console via F12 Developer Tools",
              "secret": true,
              "envVar": "ZAI_AUDIO_TOKEN",
            },
            {
              "id": "uv-brew",
              "kind": "brew",
              "formula": "uv",
              "bins": ["uvx"],
              "label": "Install uvx (brew)",
            },
            {
              "id": "uv-pip",
              "kind": "pip",
              "formula": "uv",
              "bins": ["uvx"],
              "label": "Install uvx (pip)",
            },
          ],
      },
  }
---

# 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}.wav
uvx 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.5
uvx 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.