Install
openclaw skills install bailian-ttsGenerate speech audio with 阿里云百炼 TTS via the `bailian-cli` npm package. Use when users ask to convert text to voice, choose voices/languages, batch-generate...
openclaw skills install bailian-ttsUse this skill to produce speech audio from text with @hackerpl/bailian-cli.
BAILIAN_API_KEY.bailian tts with requested voice/language/style.~/.openclaw/media/audio.Run:
npm ls -g --depth=0 @hackerpl/bailian-cli
If missing, install:
npm i -g @hackerpl/bailian-cli
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
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"
bailian tts --list-voices
references/voices-and-languages.md.~/.openclaw/media/audio (create with mkdir -p ~/.openclaw/media/audio).-o url for file delivery, -o data for programmatic pipelines.