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 從公開儲存庫中收錄這些內容。

檢舉或申請下架