搜索

PythonReactSEOPDF
OpenClaw

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 narration, or troubleshoot 百炼 TTS setup (npm install, API key, region, output format/path).

hackerpl0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install hackerpl/bailian-tts

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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 p...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/hackerpl/bailian-tts
Version
—
Commit
309ee8ee03fbaa764d65ec5aa6a9c357d9d5e710
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

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:

```bash
npm ls -g --depth=0 @hackerpl/bailian-cli
```

If missing, install:

```bash
npm i -g @hackerpl/bailian-cli
```

## 2) Check API key

Run:

```bash
[ -n "$BAILIAN_API_KEY" ] && echo SET || echo MISSING
```

If missing, ask user to create and configure key from the 阿里云百炼官方入口(控制台/平台):

- https://bailian.console.aliyun.com/

Then set it:

```bash
export BAILIAN_API_KEY="sk-xxxx"
# optional
export BAILIAN_REGION="beijing"   # or singapore
```

## 3) Generate speech (bailian-cli)

Basic (default to OpenClaw media folder):

```bash
mkdir -p ~/.openclaw/media/audio
bailian tts -t "你好,欢迎使用百炼 TTS 服务" -o url -d ~/.openclaw/media/audio
```

Specify voice/language:

```bash
mkdir -p ~/.openclaw/media/audio
bailian tts -t "Hello world" -v "Ethan" -l "English" -o url -d ~/.openclaw/media/audio
```

With style instruction:

```bash
mkdir -p ~/.openclaw/media/audio
bailian tts -t "春眠不觉晓" -v "Serena" -i "用温柔缓慢的语调朗读" -o url -d ~/.openclaw/media/audio
```

Return base64 instead of file:

```bash
bailian tts -t "测试" -o data
```

Custom output directory:

```bash
bailian tts -t "你好世界" -d "./audio"
```

## 4) Voices and languages

- For live lookup:

```bash
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 p...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.