← 返回 Skills 市场
hackerpl

bailian-tts

作者 hackerpl · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
403
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

Bailian TTS

Use this skill to produce speech audio from text with @hackerpl/bailian-cli.

Quick Workflow

  1. Check CLI availability.
  2. Check BAILIAN_API_KEY.
  3. If key is missing, guide user to prepare one in 阿里云百炼.
  4. Run bailian tts with requested voice/language/style.
  5. 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 with mkdir -p ~/.openclaw/media/audio).
  • Prefer -o url for file delivery, -o data for 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.
安全使用建议
This skill looks functionally coherent for TTS but has two practical concerns you should resolve before installing: (1) it requires a BAILIAN_API_KEY at runtime (the SKILL.md and quick-test.sh check for it), but the skill metadata doesn't declare that credential — expect to provide that secret for use; (2) the CLI it invokes is @hackerpl/bailian-cli (no homepage/repo in metadata). Verify the npm package is legitimate: check the package page, repository, maintainer identity, download counts, and review its code (or prefer an officially maintained Alibaba/百炼 client). Note the quick-test script will auto-install the CLI globally if missing — avoid running it on production hosts or run it in an isolated environment/container. Finally, avoid sending highly sensitive text to the TTS service unless you confirm the API key scope and the service's privacy terms.
功能分析
Type: OpenClaw Skill Name: bailian-tts Version: 1.0.0 The skill facilitates text-to-speech generation by instructing the agent to globally install a third-party npm package (@hackerpl/bailian-cli) and manage an Alibaba Cloud API key (BAILIAN_API_KEY). These actions, defined in SKILL.md and scripts/quick-test.sh, involve high-risk capabilities such as global software installation and credential handling. While these behaviors are aligned with the stated purpose of the skill, the automated installation of unverified external dependencies and the requirement for sensitive API keys meet the threshold for a suspicious classification.
能力评估
Purpose & Capability
The name/description match the instructions: it drives a bailian-cli to produce TTS. However, the skill fails to declare the main runtime credential (BAILIAN_API_KEY is checked/required in SKILL.md and the test script but requires.env lists none), which is an incoherence between claimed metadata and actual needs.
Instruction Scope
Runtime instructions and the included quick-test.sh are limited to checking/installing the CLI, verifying an API key, listing voices, and invoking bailian tts. They do not instruct reading unrelated system files or exfiltrating data. They do offer a base64 output option and default an output folder under ~/.openclaw/media/audio, which is reasonable for TTS workflows.
Install Mechanism
There is no formal install spec, but the provided script and instructions run npm i -g @hackerpl/bailian-cli. That is a global install of an npm package with no homepage/repository provided in the skill metadata and no verification of provenance. Installing a third-party global CLI is moderate risk and should be verified (package ownership, source repo, audit of package contents).
Credentials
The skill actually requires BAILIAN_API_KEY (and optionally BAILIAN_REGION) for operation, but the skill metadata lists no required env vars or primary credential. Asking for an API key is proportionate for a TTS integration, but the omission in the declared requirements is an inconsistency that reduces transparency. The script also assumes standard HOME/OUT_DIR locations, which is normal.
Persistence & Privilege
The skill does not request permanent presence (always:false), does not modify other skills or system-wide agent settings, and does not appear to persist credentials itself. The only system change the instructions suggest is installing a global npm CLI and creating an output directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bailian-tts
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bailian-tts 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of bailian-tts skill. - Allows text-to-speech audio generation using 阿里云百炼 TTS via the `bailian-cli` npm package. - Supports custom voice, language, style, output format (url/base64), and output directory. - Provides setup guidance for CLI installation, API key configuration, and troubleshooting. - Suitable for single or batch narration requests, and helps troubleshoot setup and usage issues.
元数据
Slug bailian-tts
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

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。

💬 留言讨论