跳到导航

智能体工具

使用 ElevenLabs 为智能体构建的工具。

概览

智能体工具包括可复用技能和本地集成,可帮助你在开发者工具和助手中自动化 ElevenLabs workflow。

设置编程智能体

使用提示词设置

将以下内容粘贴到 Claude Code、Codex 或其他编程智能体中,以安装 ElevenLabs 插件并登录:

Set up ElevenLabs in this coding agent using the guide at
https://github.com/elevenlabs/plugin/blob/main/INSTALL.md.
Install the ElevenLabs plugin, then start the ElevenLabs MCP sign-in
so I can approve it in my browser.

手动安装

Claude Code

claude plugin marketplace add elevenlabs/plugin
claude plugin install elevenlabs@elevenlabs
claude mcp login plugin:elevenlabs:elevenlabs

Codex

codex plugin marketplace add elevenlabs/plugin
codex plugin add elevenlabs@elevenlabs
codex mcp login elevenlabs

Grok Build:从 Grok Build marketplace 安装插件。

每个智能体的最后一条命令都会在浏览器中打开登录页面。更多信息请参阅插件安装指南。

对于数据驻留环境,请连接到所在区域的服务器,而非安装插件。参阅托管 MCP 服务器。

智能体技能

智能体技能是适用于常见 ElevenLabs workflow 的可复用构建模块。它们遵循 Agent Skills 规范,可与兼容的编程助手配合使用。如仅安装技能,或与其他编程助手配合使用,请运行:

npx skills add elevenlabs/skills

官方技能集合托管在 elevenlabs/skills 仓库中。 安装技能后,打开每项技能即可查看可粘贴到助手中的提示词。

使用 ElevenLabs 音色将文本转换为语音。

Use the text to speech skill to generate audio for the script below.
Model: eleven_v4
Voice: "Juniper" (or default).
Output: Save the MP3 file locally and return the file path.
Script: "Welcome to ElevenLabs. Today we will walk through the new agent tooling."

将音频转写为带时间戳的文本。

Use the speech to text skill to transcribe the audio file path/to/file.mp3.
Return a transcript that contains speaker IDs and timestamps at the start of each paragraph.

低延迟流式实时转写。

Use the speech to text skill to start a real-time transcription session for microphone input.
Model: scribe_v3_live.
Stream partial transcripts and return committed transcripts with word-level timestamps.

构建对话式语音智能体。

Use the Agents skill to create a voice agent named "Support Concierge".
Persona: friendly, concise, asks clarifying questions when needed.
Goals: answer pricing questions and route enterprise leads to sales.

使用 Speech Engine 技能为自定义聊天智能体添加语音。

Use the Speech Engine skill to add voice to my chat agent.
Server: Node.js with an existing HTTP server.
LLM: Use my existing chat completion logic.
Output: Create the Speech Engine server route, client connection code, and setup steps.

使用 Realtime 技能,在 Eleven Realtime 模型上运行 ElevenAgents 智能体,或将浏览器语音应用从 OpenAI Realtime 迁移到兼容 OpenAI 的 ElevenLabs Realtime API。仅安装此技能:

npx skills add elevenlabs/skills --skill realtime
Use the Realtime skill to switch agent agent_7101k5zvyjhmfg983brhmhkd98n6 to a Realtime model.
Model: eleven_realtime_v1_mini.
Check that the agent can use Realtime before changing it, then set the model with the CLI.
Use the Realtime skill to migrate my browser voice app from OpenAI Realtime to ElevenLabs Realtime.
Keep the @openai/agents-realtime SDK.
Output: Update the client secret route, the browser session, and the audio handling.

根据文本提示词生成音效。

Use the Sound effects skill to generate a 3-second effect: "Wooden door creaks open, then a soft slam."
Output WAV at 48 kHz and return the file path.

根据提示词生成音乐曲目。

Use the Music skill to generate a 30-second instrumental loop.
Style: lo-fi hip hop, warm, chill.
BPM: 80. No vocals.
Return the audio file path.

在保留原始表达方式的同时,将录音转换为另一种目标音色。

Use the voice changer skill to transform path/to/file.mp3 into the voice "George".
Model: eleven_multilingual_sts_v2.
Return the transformed audio file path.

移除音频文件中的背景噪音。

Use the voice isolator skill to remove background noise from path/to/file.mp3.
Return the cleaned audio file path.

获取并配置 ElevenLabs API 密钥。

How do I get my ElevenLabs API key?

ElevenLabs MCP 服务器

ElevenLabs MCP 服务器是远程 Model Context Protocol 服务器。Claude 等助手可通过简单提示词生成语音、图像和视频,设计音色,构建 Flows,以及管理智能体。它使用 ElevenLabs 账户进行 OAuth 登录,无需本地安装。使用 URL https://api.elevenlabs.io/v1/mcp 将其作为自定义连接器添加到助手中。