ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified media Safety 4/5

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

Why use this skill?

Convert text to high-quality speech with Alibaba Cloud Bailian TTS. Support for custom voices, language styles, and easy integration into OpenClaw workflows.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/hackerpl/bailian-tts
Or

What This Skill Does

The bailian-tts skill provides a robust interface to Alibaba Cloud's Bailian Text-to-Speech (TTS) service directly from your terminal. It enables OpenClaw users to convert text into high-quality human-like audio using the @hackerpl/bailian-cli package. Whether you are generating narration for content, prototyping voice interfaces, or creating automated audio alerts, this skill simplifies the API interaction, credential management, and file storage processes. It supports customizable voices, language settings, and emotional style instructions, allowing for granular control over the generated output.

Installation

To integrate this skill, first ensure your environment is configured for NPM. Install the skill using the ClawKit manager:

clawhub install openclaw/skills/skills/hackerpl/bailian-tts

Ensure the global CLI dependency is present by running npm i -g @hackerpl/bailian-cli. You must possess an API key from the Alibaba Cloud Bailian console. Once obtained, set your credentials using environment variables: export BAILIAN_API_KEY="your_api_key_here".

Use Cases

This skill is perfect for developers, writers, and content creators. Common scenarios include:

  • Converting long-form blog posts or articles into audio files for accessibility.
  • Creating voiceovers for presentations or video projects using specific character voices.
  • Programmatic generation of audio for software prototyping or automated notification systems.
  • Testing different regional dialects and speaking styles for multilingual applications.

Example Prompts

  1. "Generate an audio file of this text: 'Welcome to the future of AI agents', using the Ethan voice in English, and save it to the default directory."
  2. "Read this poem using a gentle and slow tone: '春眠不觉晓', and provide the file path once finished."
  3. "List all available voices and languages supported by the Bailian TTS service so I can choose a better narrator for my project."

Tips & Limitations

  • Character Limits: Keep input text under 600 characters per request to ensure stability.
  • File Management: The default output path is ~/.openclaw/media/audio. Ensure you have write permissions for this directory.
  • Privacy: Avoid sending sensitive or PII (Personally Identifiable Information) data to the API. If your text contains private information, redact it before running the command.
  • Troubleshooting: If you encounter errors, always verify your BAILIAN_API_KEY and check that the BAILIAN_REGION environment variable matches your account configuration.

Metadata

Author@hackerpl
Stars2387
Views0
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-hackerpl-bailian-tts": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#tts#audio#aliyun#speech#voice
Safety Score: 4/5

Flags: network-access, file-write, external-api