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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/hackerpl/bailian-ttsWhat 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
- "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."
- "Read this poem using a gentle and slow tone: '春眠不觉晓', and provide the file path once finished."
- "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_KEYand check that theBAILIAN_REGIONenvironment variable matches your account configuration.
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-hackerpl-bailian-tts": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, external-api