/install bailian-tts
Bailian TTS
Use this skill to produce speech audio from text with @hackerpl/bailian-cli.
Quick Workflow
- Check CLI availability.
- Check
BAILIAN_API_KEY. - If key is missing, guide user to prepare one in 阿里云百炼.
- Run
bailian ttswith requested voice/language/style. - Return output path (or base64 when requested). Default audio output directory:
~/.openclaw/media/audio.
1) Check and install CLI
Run:
npm ls -g --depth=0 @hackerpl/bailian-cli
If missing, install:
npm i -g @hackerpl/bailian-cli
2) Check API key
Run:
[ -n "$BAILIAN_API_KEY" ] && echo SET || echo MISSING
If missing, ask user to create and configure key from the 阿里云百炼官方入口(控制台/平台):
Then set it:
export BAILIAN_API_KEY="sk-xxxx"
# optional
export BAILIAN_REGION="beijing" # or singapore
3) Generate speech (bailian-cli)
Basic (default to OpenClaw media folder):
mkdir -p ~/.openclaw/media/audio
bailian tts -t "你好,欢迎使用百炼 TTS 服务" -o url -d ~/.openclaw/media/audio
Specify voice/language:
mkdir -p ~/.openclaw/media/audio
bailian tts -t "Hello world" -v "Ethan" -l "English" -o url -d ~/.openclaw/media/audio
With style instruction:
mkdir -p ~/.openclaw/media/audio
bailian tts -t "春眠不觉晓" -v "Serena" -i "用温柔缓慢的语调朗读" -o url -d ~/.openclaw/media/audio
Return base64 instead of file:
bailian tts -t "测试" -o data
Custom output directory:
bailian tts -t "你好世界" -d "./audio"
4) Voices and languages
- For live lookup:
bailian tts --list-voices
- Full built-in table: read
references/voices-and-languages.md.
5) Operational notes
- Keep text length within CLI limit (600 chars per request).
- Default output directory:
~/.openclaw/media/audio(create withmkdir -p ~/.openclaw/media/audio). - Prefer
-o urlfor file delivery,-o datafor programmatic pipelines. - Respect user privacy: do not upload sensitive text externally without explicit confirmation.
- If generation fails, check in order: API key → region → network → voice/language spelling.
- When producing many clips, keep a consistent voice and instruction style for tonal continuity.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bailian-tts - 安装完成后,直接呼叫该 Skill 的名称或使用
/bailian-tts触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
bailian-tts 是什么?
Generate speech audio with 阿里云百炼 TTS via the `bailian-cli` npm package. Use when users ask to convert text to voice, choose voices/languages, batch-generate... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 403 次。
如何安装 bailian-tts?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bailian-tts」即可一键安装,无需额外配置。
bailian-tts 是免费的吗?
是的,bailian-tts 完全免费(开源免费),可自由下载、安装和使用。
bailian-tts 支持哪些平台?
bailian-tts 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 bailian-tts?
由 hackerpl(@hackerpl)开发并维护,当前版本 v1.0.0。