Communitygithub.com

Zai-TTS

使用 GLM-TTS 服务通过 `uvx zai-tts` 命令实现文本转语音,生成高质量音频。

Zai-TTS 是什么?

Zai-TTS 是一个基于 GLM-TTS 服务的文本转语音能力,通过 `uvx zai-tts` 命令将文本转换为高质量音频文件。该技能适用于用户需要音频或语音输出的场景,例如要求使用「tts」触发词或关键词时;也适用于内容需以语音形式呈现的场景(如多任务处理、无障碍访问、播客、驾驶、烹饪等)。支持使用预克隆的语音进行合成。使用前需配置环境变量 `ZAI_AUDIO_USERID` 和 `ZAI_AUDIO_TOKEN`,可通过登录 `audio.z.ai` 网站并在 F12 开发者工具控制台中执行 `localStorage['auth-storage']` 获取。该技能支持调整语速、音量,切换内置的多种语音(如欢快的女性声音 Lila、优雅的女性声音 Chloe、阳光的男性声音 Ethan),并可通过 `-l` 参数列出所有可用语音。如需使用自定义语音,需先在 `audio.z.ai` 网站上完成语音克隆。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aahl/skills/tree/HEAD/skills/zai-tts

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Zai-TTS 是做什么的?

使用 GLM-TTS 服务通过 uvx zai-tts 命令生成高质量的文本转语音音频。 在使用此技能前,你需要配置环境变量 ZAI_AUDIO_USERID 和 ZAI_AUDIO_TOKEN, 这些变量可以通过登录 audio.z.ai 网站,并在 F12 开发者工具的控制台中执行 localStorage['auth-storage'] 来获取。

用法

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

调整语速、音量

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

切换语音

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

可用语音

system_001:Lila。一种欢快、标准发音的女性声音 system_002:Chloe。一种温柔、优雅、知性的女性声音 system_003:Ethan。一种阳光、标准发音的男性声音

使用 shell 命令获取所有可用语音:

uvx zai-tts -l

如果你希望使用自定义语音,请先在网站 audio.z.ai 上完成语音克隆。

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

aahl/edgeone

Deploy HTML content to EdgeOne Pages, return the public URL.

aahl/edge-tts

Text-to-speech conversion using `uvx edge-tts` 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, driving, cooking). (3) User wants a specific voice, speed, pitch, or format for TTS output.

aahl/maishou

商品价格全网对比技能,获取商品在淘宝(Taobao)、天猫(TMall)、京东(JD.com)、拼多多(PinDuoDuo)、抖音(Douyin)、快手(KaiShou)的最优价格、优惠券,当用户想购物或者获取优惠信息时使用。Get the best price, coupons for goods on Chinese e-commerce platforms, compare product prices, and use when users want to shop or get discount information.

aahl/mcp-deepwiki

Skills for accessing and searching docs in DeepWiki/GitHub’s public code repositories can help users understand open-source project source codes, and users can also ask questions directly about the code docs.

aahl/mcp-duckgo

Skills for web search and content scraping via DuckDuckGo MCP Server. Used when users need online searching and web scraping.

aahl/mcp-hass

The skill for control Home Assistant smart home devices and query states using MCP protocol.

aahl/mcp-lark

Based on FeiShu(飞书) / Lark's OpenAPI MCP server, manage user information, chats, emails, cloud documents, multidimensional tables, tasks, calendars, etc.

aahl/mcp-vods

用于追剧/追番的技能,为AI提供搜索影视播放地址的能力,并支持在小米电视上直接播放。当用户想搜索影视、动漫、短剧、综艺等节目信息或更新进度时使用此技能。

aahl/qwen-asr

Transcribe audio files using Qwen ASR. Use when the user sends voice messages and wants them converted to text.

aahl/tianqi

查询中国地区的天气预报,支持15天及逐小时预报、各种生活指数

相关技能