专业级 AI 语音工作室
简介
基于 ElevenLabs 官方 API 的 OpenClaw 语音工作室,提供 TTS、语音克隆、音效生成等专业音频处理能力,适合内容创作者和开发者快速构建语音应用。
原始描述
ClawVox - ElevenLabs voice studio for OpenClaw. Generate speech, transcribe audio, clone voices, create sound effects, and more.
通过你的 Agent 添加
安装目录:clawvox/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
ClawVox 是一个将 ElevenLabs 强大语音能力集成到 OpenClaw 环境的 Skill,通过一系列 Shell 脚本封装了完整的语音工作流。用户可通过 speak.sh 实现文本转语音,支持 32 种语言的实时/高质量模式切换;transcribe.sh 完成语音转文本,支持时间戳输出;clone.sh 仅需 30 秒样本即可克隆个性化声音;sfx.sh 通过文本描述生成 0.5-22 秒的定制音效;isolate.sh 智能分离人声与背景噪音;dub.sh 实现 29 种语言的自动配音翻译。所有脚本均通过 ELEVENLABS_API_KEY 认证,配置灵活支持环境变量或 JSON 配置文件。
显著优点
功能全面性:覆盖语音生产全链条,从生成、转换、克隆到后期处理一站式解决,无需切换多个工具。技术先进性:直接对接 ElevenLabs 业界领先的神经网络语音模型,Flash 模式延迟低至 75ms,Multilingual v2 支持长文本高质量输出。易用性设计:命令行接口简洁直观,预设 25+ 种官方声音,支持语音库搜索、预览和管理。扩展性:基于标准 curl/jq 工具链,无复杂依赖,易于集成到自动化工作流。成本透明:免费 tier 提供每月约 1 万字符额度,付费方案按量计费清晰可控。
潜在缺点与局限性
外部依赖风险:核心功能完全依赖 ElevenLabs 云服务,API 限流、服务中断或定价调整将直接影响可用性。文件处理限制:转录最大 100MB、配音最大 500MB、克隆单文件 50MB,大文件需预处理。路径安全待加强:用户指定的 --out 参数未做路径遍历防护,存在潜在的文件写入风险。沙箱环境要求:部分 OpenClaw 配置需显式启用 sandbox 模式才能执行,增加了部署复杂度。语言支持不均:虽然覆盖主流语言,但小语种语音质量和克隆效果可能不如英语成熟。
适合的目标群体
内容创作者:播客主播、有声书制作人、视频博主,需要快速生成专业配音和音效。开发者与产品经理:构建语音交互应用、AI 助手、客服系统的技术团队,需要可编程的 TTS/STT 能力。本地化团队:跨国企业的多语言内容制作人员,利用 dubbing 功能降低翻译配音成本。教育与无障碍领域:制作教学音频、为视障用户提供语音内容转换的机构和开发者。
使用风险
性能层面:语音克隆和高质量生成耗时较长,实时场景需选用 Flash 模型;大文件上传受网络带宽制约。成本控制:未设置用量预警机制,高频调用易超出免费额度产生意外费用。隐私合规:语音样本和生成内容上传至第三方云端,涉及声纹生物特征数据需评估 GDPR/个人信息保护法合规性。API 密钥管理:密钥以明文环境变量存储,多用户共享环境存在泄露风险,建议配合密钥管理服务使用。
技能正文
name: clawvox
description: ClawVox - ElevenLabs voice studio for OpenClaw. Generate speech, transcribe audio, clone voices, create sound effects, and more.
homepage: https://elevenlabs.io/developers
metadata:
{
"openclaw": {
"emoji": "🎙️",
"skillKey": "clawvox",
"requires": {
"bins": ["curl", "jq"],
"env": ["ELEVENLABS_API_KEY"]
},
"primaryEnv": "ELEVENLABS_API_KEY"
}
}
ClawVox
Transform your OpenClaw assistant into a professional voice production studio with ClawVox - powered by ElevenLabs.
Quick Reference
Action
Command
Description
Speak
{baseDir}/scripts/speak.sh 'text'
Convert text to speech
Transcribe
{baseDir}/scripts/transcribe.sh audio.mp3
Speech to text
Clone
{baseDir}/scripts/clone.sh --name "Voice" sample.mp3
Clone a voice
SFX
{baseDir}/scripts/sfx.sh "thunder storm"
Generate sound effects
Voices
{baseDir}/scripts/voices.sh list
List available voices
Dub
{baseDir}/scripts/dub.sh --target es audio.mp3
Translate audio
Isolate
{baseDir}/scripts/isolate.sh audio.mp3
Remove background noise
Setup
- Get your API key from elevenlabs.io/app/settings/api-keys
- Configure in
~/.openclaw/openclaw.json:
{
skills: {
entries: {
"clawvox": {
apiKey: "YOUR_ELEVENLABS_API_KEY",
config: {
defaultVoice: "Rachel",
defaultModel: "eleven_turbo_v2_5",
outputDir: "~/.openclaw/audio"
}
}
}
}
}
| Action | Command | Description |
|---|---|---|
| Speak | {baseDir}/scripts/speak.sh 'text' |
Convert text to speech |
| Transcribe | {baseDir}/scripts/transcribe.sh audio.mp3 |
Speech to text |
| Clone | {baseDir}/scripts/clone.sh --name "Voice" sample.mp3 |
Clone a voice |
| SFX | {baseDir}/scripts/sfx.sh "thunder storm" |
Generate sound effects |
| Voices | {baseDir}/scripts/voices.sh list |
List available voices |
| Dub | {baseDir}/scripts/dub.sh --target es audio.mp3 |
Translate audio |
| Isolate | {baseDir}/scripts/isolate.sh audio.mp3 |
Remove background noise |
- Get your API key from elevenlabs.io/app/settings/api-keys
- Configure in
~/.openclaw/openclaw.json:
{
skills: {
entries: {
"clawvox": {
apiKey: "YOUR_ELEVENLABS_API_KEY",
config: {
defaultVoice: "Rachel",
defaultModel: "eleven_turbo_v2_5",
outputDir: "~/.openclaw/audio"
}
}
}
}
}
Or set the environment variable:
export ELEVENLABS_API_KEY="your_api_key_here"
Voice Generation (TTS)
Basic Text-to-Speech
# Quick speak with default voice (Rachel)
{baseDir}/scripts/speak.sh 'Hello, I am your personal AI assistant.'
# Specify voice by name
{baseDir}/scripts/speak.sh --voice Adam 'Hello from Adam'
# Save to file
{baseDir}/scripts/speak.sh --out ~/audio/greeting.mp3 'Welcome to the show'
# Use specific model
{baseDir}/scripts/speak.sh --model eleven_multilingual_v2 'Bonjour'
# Adjust voice settings
{baseDir}/scripts/speak.sh --stability 0.5 --similarity 0.8 'Expressive speech'
# Adjust speed
{baseDir}/scripts/speak.sh --speed 1.2 'Faster speech'
# Use multilingual model for other languages
{baseDir}/scripts/speak.sh --model eleven_multilingual_v2 --voice Rachel 'Hola, que tal'
{baseDir}/scripts/speak.sh --model eleven_multilingual_v2 --voice Adam 'Guten Tag'
Voice Models
Model
Latency
Languages
Best For
eleven_flash_v2_5
~75ms
32
Real-time, streaming
eleven_turbo_v2_5
~250ms
32
Balanced quality/speed
eleven_multilingual_v2
~500ms
29
Long-form, highest quality
Available Voices
| Model | Latency | Languages | Best For |
|---|---|---|---|
eleven_flash_v2_5 |
~75ms | 32 | Real-time, streaming |
eleven_turbo_v2_5 |
~250ms | 32 | Balanced quality/speed |
eleven_multilingual_v2 |
~500ms | 29 | Long-form, highest quality |
Premade voices: Rachel, Adam, Antoni, Bella, Domi, Elli, Josh, Sam, Callum, Charlie, George, Liam, Matilda, Alice, Bill, Brian, Chris, Daniel, Eric, Jessica, Laura, Lily, River, Roger, Sarah, Will
Long-Form Content
# Generate audio from text file
{baseDir}/scripts/speak.sh --input chapter.txt --voice "George" --out audiobook.mp3
Speech-to-Text (Transcription)
Basic Transcription
# Transcribe audio file
{baseDir}/scripts/transcribe.sh recording.mp3
# Save to file
{baseDir}/scripts/transcribe.sh --out transcript.txt audio.mp3
# Transcribe with language hint
{baseDir}/scripts/transcribe.sh --language es spanish_audio.mp3
# Include timestamps
{baseDir}/scripts/transcribe.sh --timestamps podcast.mp3
Supported Formats
- MP3, MP4, MPEG, MPGA, M4A, WAV, WebM
- Maximum file size: 100MB
Voice Cloning
Instant Voice Clone
# Clone from single sample (minimum 30 seconds recommended)
{baseDir}/scripts/clone.sh --name MyVoice recording.mp3
# Clone with description
{baseDir}/scripts/clone.sh --name BusinessVoice \
--description 'Professional male voice' \
sample.mp3
# Clone with labels
{baseDir}/scripts/clone.sh --name MyVoice \
--labels '{"gender":"male","age":"adult"}' \
sample.mp3
# Remove background noise during cloning
{baseDir}/scripts/clone.sh --name CleanVoice \
--remove-bg-noise \
sample.mp3
# Test cloned voice
{baseDir}/scripts/speak.sh --voice MyVoice 'Testing my cloned voice'
Voice Library Management
# List all available voices
{baseDir}/scripts/voices.sh list
# Get voice details
{baseDir}/scripts/voices.sh info --name Rachel
{baseDir}/scripts/voices.sh info --id 21m00Tcm4TlvDq8ikWAM
# Search voices (filter output with grep)
{baseDir}/scripts/voices.sh list | grep -i "female"
# Filter by category
{baseDir}/scripts/voices.sh list --category premade
{baseDir}/scripts/voices.sh list --category cloned
# Download voice preview
{baseDir}/scripts/voices.sh preview --name Rachel -o preview.mp3
# Delete custom voice
{baseDir}/scripts/voices.sh delete --id "voice_id"
Sound Effects
# Generate sound effect
{baseDir}/scripts/sfx.sh 'Heavy rain on a tin roof'
# With duration
{baseDir}/scripts/sfx.sh --duration 5 'Forest ambiance with birds'
# With prompt influence (higher = more accurate)
{baseDir}/scripts/sfx.sh --influence 0.8 'Sci-fi laser gun firing'
# Save to file
{baseDir}/scripts/sfx.sh --out effects/thunder.mp3 'Rolling thunder'
# Generate audio from text file
{baseDir}/scripts/speak.sh --input chapter.txt --voice "George" --out audiobook.mp3
Basic Transcription
# Transcribe audio file
{baseDir}/scripts/transcribe.sh recording.mp3
# Save to file
{baseDir}/scripts/transcribe.sh --out transcript.txt audio.mp3
# Transcribe with language hint
{baseDir}/scripts/transcribe.sh --language es spanish_audio.mp3
# Include timestamps
{baseDir}/scripts/transcribe.sh --timestamps podcast.mp3
- MP3, MP4, MPEG, MPGA, M4A, WAV, WebM
- Maximum file size: 100MB
Voice Cloning
Instant Voice Clone
# Clone from single sample (minimum 30 seconds recommended)
{baseDir}/scripts/clone.sh --name MyVoice recording.mp3
# Clone with description
{baseDir}/scripts/clone.sh --name BusinessVoice \
--description 'Professional male voice' \
sample.mp3
# Clone with labels
{baseDir}/scripts/clone.sh --name MyVoice \
--labels '{"gender":"male","age":"adult"}' \
sample.mp3
# Remove background noise during cloning
{baseDir}/scripts/clone.sh --name CleanVoice \
--remove-bg-noise \
sample.mp3
# Test cloned voice
{baseDir}/scripts/speak.sh --voice MyVoice 'Testing my cloned voice'
Voice Library Management
# List all available voices
{baseDir}/scripts/voices.sh list
# Get voice details
{baseDir}/scripts/voices.sh info --name Rachel
{baseDir}/scripts/voices.sh info --id 21m00Tcm4TlvDq8ikWAM
# Search voices (filter output with grep)
{baseDir}/scripts/voices.sh list | grep -i "female"
# Filter by category
{baseDir}/scripts/voices.sh list --category premade
{baseDir}/scripts/voices.sh list --category cloned
# Download voice preview
{baseDir}/scripts/voices.sh preview --name Rachel -o preview.mp3
# Delete custom voice
{baseDir}/scripts/voices.sh delete --id "voice_id"
Sound Effects
# Generate sound effect
{baseDir}/scripts/sfx.sh 'Heavy rain on a tin roof'
# With duration
{baseDir}/scripts/sfx.sh --duration 5 'Forest ambiance with birds'
# With prompt influence (higher = more accurate)
{baseDir}/scripts/sfx.sh --influence 0.8 'Sci-fi laser gun firing'
# Save to file
{baseDir}/scripts/sfx.sh --out effects/thunder.mp3 'Rolling thunder'
# List all available voices
{baseDir}/scripts/voices.sh list
# Get voice details
{baseDir}/scripts/voices.sh info --name Rachel
{baseDir}/scripts/voices.sh info --id 21m00Tcm4TlvDq8ikWAM
# Search voices (filter output with grep)
{baseDir}/scripts/voices.sh list | grep -i "female"
# Filter by category
{baseDir}/scripts/voices.sh list --category premade
{baseDir}/scripts/voices.sh list --category cloned
# Download voice preview
{baseDir}/scripts/voices.sh preview --name Rachel -o preview.mp3
# Delete custom voice
{baseDir}/scripts/voices.sh delete --id "voice_id"
# Generate sound effect
{baseDir}/scripts/sfx.sh 'Heavy rain on a tin roof'
# With duration
{baseDir}/scripts/sfx.sh --duration 5 'Forest ambiance with birds'
# With prompt influence (higher = more accurate)
{baseDir}/scripts/sfx.sh --influence 0.8 'Sci-fi laser gun firing'
# Save to file
{baseDir}/scripts/sfx.sh --out effects/thunder.mp3 'Rolling thunder'
Note: Duration range is 0.5 to 22 seconds (rounded to nearest 0.5)
Voice Isolation
# Remove background noise and isolate voice
{baseDir}/scripts/isolate.sh noisy_recording.mp3
# Save to specific file
{baseDir}/scripts/isolate.sh --out clean_voice.mp3 meeting_recording.mp3
# Don't tag audio events
{baseDir}/scripts/isolate.sh --no-audio-events recording.mp3
# Remove background noise and isolate voice
{baseDir}/scripts/isolate.sh noisy_recording.mp3
# Save to specific file
{baseDir}/scripts/isolate.sh --out clean_voice.mp3 meeting_recording.mp3
# Don't tag audio events
{baseDir}/scripts/isolate.sh --no-audio-events recording.mp3
Requirements:
- Minimum duration: 4.6 seconds
- Supported formats: MP3, WAV, M4A, OGG, FLAC
Dubbing (Multi-Language Translation)
# Dub audio to Spanish
{baseDir}/scripts/dub.sh --target es audio.mp3
# Dub with source language specified
{baseDir}/scripts/dub.sh --source en --target ja video.mp4
# Check dubbing status
{baseDir}/scripts/dub.sh --status --id "dubbing_id"
# Download dubbed audio
{baseDir}/scripts/dub.sh --download --id "dubbing_id" --out dubbed.mp3
# Dub audio to Spanish
{baseDir}/scripts/dub.sh --target es audio.mp3
# Dub with source language specified
{baseDir}/scripts/dub.sh --source en --target ja video.mp4
# Check dubbing status
{baseDir}/scripts/dub.sh --status --id "dubbing_id"
# Download dubbed audio
{baseDir}/scripts/dub.sh --download --id "dubbing_id" --out dubbed.mp3
Supported languages: en, es, fr, de, it, pt, pl, hi, ar, zh, ja, ko, nl, ru, tr, vi, sv, da, fi, cs, el, he, id, ms, no, ro, uk, hu, th
API Usage Examples
For direct API access, all scripts use curl under the hood:
# Direct TTS API call
curl -X POST "https://api.elevenlabs.io/v1/text-to-speech/VOICE_ID" \
-H "xi-api-key: $ELEVENLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Hello world", "model_id": "eleven_turbo_v2_5"}' \
--output speech.mp3
Error Handling
All scripts provide helpful error messages:
- 401: Authentication failed - Check your API key
- 403: Permission denied - Your API key may not have access
- 429: Rate limit exceeded - Wait before trying again
- 500/502/503: ElevenLabs API issues - Try again later
Testing
Run the test suite to verify everything works:
{baseDir}/test.sh YOUR_API_KEY
Or with environment variable:
export ELEVENLABS_API_KEY="your_key"
{baseDir}/test.sh
Troubleshooting
Common Issues
-
"exec host not allowed (requested gateway)"
- The skill needs to run commands in a sandbox environment
- Configure OpenClaw to use sandbox:
tools.exec.host: "sandbox" - Or enable sandboxing in your OpenClaw config
- Alternative: Configure exec approvals for gateway host (see OpenClaw docs)
-
Parse errors with quotes or exclamation marks
- Use single quotes instead of double quotes:
'Hello world'not"Hello world!" - Avoid exclamation marks (
!) in text when using double quotes - For complex text, use the
--inputoption with a file
- Use single quotes instead of double quotes:
-
"ELEVENLABS_API_KEY not set"
- Ensure
ELEVENLABS_API_KEYis set or configured in openclaw.json - Check that the API key is at least 20 characters long
- Ensure
-
"jq is required but not installed"
- Install jq:
apt-get install jq(Linux) orbrew install jq(macOS)
- Install jq:
-
"Rate limited"
- Check your ElevenLabs plan quota at elevenlabs.io/app/usage
- Free tier: ~10,000 characters/month
-
"Voice not found"
- Use
{baseDir}/scripts/voices.sh listto see available voices - Check if the voice ID is correct
- Use
-
"Dubbing failed"
- Ensure source audio is clear and audible
- Check supported language codes
-
"File too large"
- Transcription: 100MB max
- Dubbing: 500MB max
- Voice cloning: 50MB per file
Debug Mode
# Enable verbose output
DEBUG=1 {baseDir}/scripts/speak.sh 'test'
# Show API request details
DEBUG=1 {baseDir}/scripts/transcribe.sh audio.mp3
Pricing Notes
# Enable verbose output
DEBUG=1 {baseDir}/scripts/speak.sh 'test'
# Show API request details
DEBUG=1 {baseDir}/scripts/transcribe.sh audio.mp3
ElevenLabs API pricing (approximate):
- Flash v2.5: ~$0.06/min
- Turbo v2.5: ~$0.06/min
- Multilingual v2: ~$0.12/min
- Voice cloning: Included in plan
- Sound effects: ~$0.02/generation
- Transcription: ~$0.02/min (Scribe v1)
Free tier: ~10,000 characters/month
Links
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。