Communitygithub.com

aahl/skills

透過 `uvx zai-tts` 命令使用 GLM-TTS 服務進行文字轉語音(TTS)轉換,將文字轉換為音訊。適用於 (1) 使用者要求音訊/語音輸出並觸發「tts」關鍵字。 (2) 內容需要朗讀而非閱讀(多工處理、無障礙環境、播客、開車、做菜)。 (3) 使用預先複製好的語音。

skills 是什麼?

此技能(aahl/skills)提供一個基於 GLM-TTS 服務的文字轉語音(TTS)工具,透過 `uvx zai-tts` 命令列介面執行。開發者或 AI 代理使用者可以將文字內容轉換為高品質的語音音訊,適合用於多工場景、無障礙需求、播客製作或任何需要語音輸出的情境。該技能支援多種預設語音(如 Lila、Chloe、Ethan),並可調整語速與音量,提供更靈活的輸出控制。使用前需設定環境變數 `ZAI_AUDIO_USERID` 與 `ZAI_AUDIO_TOKEN`,這些憑證可從 `audio.z.ai` 網站透過開發者工具取得。此外,使用者也可在網站上完成語音複製,以使用自訂語音。此技能支援多種平台,包括 Claude Code、Cursor、Codex 等透過 `uvx` 執行的環境。

相容平台~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天及逐小时预报、各种生活指数

相關技能