← Back to Skills Marketplace
hackerpl

bailian-tts

by hackerpl · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
403
Downloads
0
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install bailian-tts
Description
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...
README (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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bailian-tts
  3. After installation, invoke the skill by name or use /bailian-tts
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug bailian-tts
Version 1.0.0
License
All-time Installs 3
Active Installs 3
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 403 downloads so far.

How do I install bailian-tts?

Run "/install bailian-tts" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is bailian-tts free?

Yes, bailian-tts is completely free (open-source). You can download, install and use it at no cost.

Which platforms does bailian-tts support?

bailian-tts is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created bailian-tts?

It is built and maintained by hackerpl (@hackerpl); the current version is v1.0.0.

💬 Comments