🗣️ ElevenLabs Conversational
Not just TTS — full Conversational AI. Voice synthesis, cloning, and conversational AI agent creation for OpenClaw agents.
Voice Synthesis vs Conversational AI
| Feature | Voice Synthesis (TTS) | Conversational AI |
|---|
| What | Text → Speech | Full voice agent |
| Flow |
One-way | Bidirectional |
| Use case | Narration, alerts | Phone agents, assistants |
| Latency | Batch OK | Real-time required |
Existing ElevenLabs skills only do TTS. This skill covers the full platform including Conversational AI agents.
Requirements
| Variable | Required | Description |
|---|
| INLINECODE0 | ✅ | ElevenLabs API key |
Quick Start
CODEBLOCK0
Commands
voices
List all available voices with ID, name, category, and language.
tts <text>
Convert text to speech (non-streaming).
- -
--voice NAME — voice name or ID (default: Rachel) - INLINECODE4 — output file path (default: output.mp3)
- INLINECODE5 — model (default: elevenmultilingualv2)
- INLINECODE6 — 0.0-1.0, lower = more expressive (default: 0.5)
- INLINECODE7 — 0.0-1.0, voice similarity boost (default: 0.75)
- INLINECODE8 — 0.0-1.0, style exaggeration (default: 0.0)
tts-stream <text>
Streaming TTS — lower latency, outputs as chunks arrive.
- - Same options as INLINECODE10
list-agents
List all Conversational AI agents.
create-agent
Create a new Conversational AI agent.
- -
--name NAME — agent name - INLINECODE14 — voice to use
- INLINECODE15 — system prompt for the agent
- INLINECODE16 — greeting message
- INLINECODE17 — language code (default: en)
get-agent <agent_id>
Get details of a conversational AI agent.
clone-voice <name>
Create an instant voice clone.
- -
--files FILE [FILE ...] — audio samples (minimum 1, recommended 3+) - INLINECODE21 — voice description
Integration Patterns
With Twilio (Phone)
- 1. Create a Conversational AI agent
- Configure Twilio webhook to point to ElevenLabs
- Incoming calls route to your AI agent
With Vapi
- 1. Create voice in ElevenLabs
- Use voice ID in Vapi assistant config
- Vapi handles orchestration, ElevenLabs handles voice
With LiveKit
- 1. Generate TTS audio via streaming API
- Publish audio track to LiveKit room
- Subscribe to participant audio for STT pipeline
Credits
Built by
M. Abidi |
agxntsix.ai
YouTube |
GitHub
Part of the
AgxntSix Skill Suite for OpenClaw agents.
📅 Need help setting up OpenClaw for your business? Book a free consultation
🗣️ ElevenLabs 对话式AI
不仅仅是TTS——完整的对话式AI。 为OpenClaw智能体提供语音合成、克隆和对话式AI智能体创建。
语音合成 vs 对话式AI
| 特性 | 语音合成 (TTS) | 对话式AI |
|---|
| 功能 | 文本 → 语音 | 完整语音智能体 |
| 流程 |
单向 | 双向 |
| 使用场景 | 旁白、提醒 | 电话智能体、助手 |
| 延迟 | 可批量处理 | 需实时响应 |
现有的ElevenLabs技能仅支持TTS。本技能涵盖完整平台,包括对话式AI智能体。
环境要求
| 变量 | 必需 | 描述 |
|---|
| ELEVENLABSAPIKEY | ✅ | ElevenLabs API密钥 |
快速开始
bash
列出可用语音
python3 {baseDir}/scripts/elevenlabs_api.py voices
文本转语音
python3 {baseDir}/scripts/elevenlabs_api.py tts 你好世界 --voice Rachel --output hello.mp3
带情感控制的TTS
python3 {baseDir}/scripts/elevenlabs_api.py tts 我太兴奋了! --voice Rachel --stability 0.3 --style 0.8
流式TTS(更低延迟)
python3 {baseDir}/scripts/elevenlabs_api.py tts-stream 你好世界 --voice Rachel --output hello.mp3
列出对话式AI智能体
python3 {baseDir}/scripts/elevenlabs_api.py list-agents
创建对话式AI智能体
python3 {baseDir}/scripts/elevenlabs_api.py create-agent --name 支持机器人 --voice Rachel --prompt 你是一个乐于助人的支持智能体。
获取智能体详情
python3 {baseDir}/scripts/elevenlabs
api.py get-agent id>
语音克隆(即时)
python3 {baseDir}/scripts/elevenlabs_api.py clone-voice 我的声音 --files sample1.mp3 sample2.mp3
命令
voices
列出所有可用语音,包含ID、名称、类别和语言。
tts <文本>
将文本转换为语音(非流式)。
- - --voice 名称 — 语音名称或ID(默认:Rachel)
- --output 文件 — 输出文件路径(默认:output.mp3)
- --model ID — 模型(默认:elevenmultilingualv2)
- --stability 浮点数 — 0.0-1.0,数值越低表现力越强(默认:0.5)
- --similarity 浮点数 — 0.0-1.0,语音相似度增强(默认:0.75)
- --style 浮点数 — 0.0-1.0,风格夸张程度(默认:0.0)
tts-stream <文本>
流式TTS——更低延迟,数据块到达即输出。
list-agents
列出所有对话式AI智能体。
create-agent
创建新的对话式AI智能体。
- - --name 名称 — 智能体名称
- --voice 名称 — 使用的语音
- --prompt 文本 — 智能体的系统提示词
- --first-message 文本 — 问候语
- --language 代码 — 语言代码(默认:en)
get-agent
获取对话式AI智能体的详细信息。
clone-voice <名称>
创建即时语音克隆。
- - --files 文件 [文件 ...] — 音频样本(至少1个,建议3个以上)
- --description 文本 — 语音描述
集成模式
与Twilio集成(电话)
- 1. 创建对话式AI智能体
- 配置Twilio webhook指向ElevenLabs
- 来电将路由至您的AI智能体
与Vapi集成
- 1. 在ElevenLabs中创建语音
- 在Vapi助手配置中使用语音ID
- Vapi负责编排,ElevenLabs负责语音
与LiveKit集成
- 1. 通过流式API生成TTS音频
- 将音频轨道发布到LiveKit房间
- 订阅参与者音频用于STT流水线
致谢
由 M. Abidi 构建 | agxntsix.ai
YouTube | GitHub
属于OpenClaw智能体的 AgxntSix技能套件 的一部分。
📅 需要为您的业务设置OpenClaw? 预约免费咨询