zai-tts

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Zai-TTS

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.
通过
uvx zai-tts
命令调用GLM-TTS服务生成高质量的文本转语音音频。 使用该功能前,你需要配置环境变量
ZAI_AUDIO_USERID
ZAI_AUDIO_TOKEN
, 可通过登录
audio.z.ai
,按下F12打开开发者工具,在控制台执行
localStorage['auth-storage']
获取。

Usage

使用方法

shell
uvx zai-tts -t "{msg}" -o {tempdir}/{filename}.wav
shell
uvx zai-tts -t "{msg}" -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
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
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.
system_001
: Lila,欢快、发音标准的女声
system_002
: Chloe,温柔、优雅、知性的女声
system_003
: Ethan,阳光、发音标准的男声
通过以下Shell命令获取所有可用语音:
shell
uvx zai-tts -l
若要使用自定义语音,请先在
audio.z.ai
网站完成语音克隆。