Community编程与开发github.com

ComposioHQ/ElevenLabs-Automation

通过Composio MCP集成,自动化ElevenLabs文本转语音工作流——生成语音、浏览声音、检查订阅限制、列出模型、流式传输音频及检索历史记录。

ElevenLabs-Automation 是什么?

此技能通过Composio MCP集成,为AI代理提供了完整的ElevenLabs文本转语音(TTS)自动化能力。它支持文本转语音生成、浏览和检查声音库、查询订阅配额和剩余积分、列出可用模型以及流式传输低延迟音频。用户还可以从历史记录中检索之前生成的音频文件。该技能适用于Claude Code、Cursor、Codex等支持MCP协议的AI代理平台。其核心优势在于将ElevenLabs的复杂API封装成简单的工具调用,开发者可以通过预设的工作流(如ELEVENLABS_TEXT_TO_SPEECH)快速生成语音,并注意输出格式、文本长度限制和预签名URL过期时间等关键细节。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/elevenlabs-automation

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

ElevenLabs 自动化

自动化您的ElevenLabs文本转语音工作流——将文本转换为自然语音、浏览声音库、检查声音详情、查询订阅积分、选择TTS模型、低延迟流式传输音频,以及从历史记录中检索之前生成的音频。

工具包文档: composio.dev/toolkits/elevenlabs


设置

  1. 将Composio MCP服务器添加到您的客户端:https://rube.app/mcp
  2. 提示时连接您的ElevenLabs账户(API密钥认证)
  3. 开始使用以下工作流

核心工作流

1. 从文本生成语音

使用 ELEVENLABS_TEXT_TO_SPEECH 将文本转换为可下载的音频文件。

工具:ELEVENLABS_TEXT_TO_SPEECH
输入:
  - voice_id: 字符串(必填)—— 从 ELEVENLABS_GET_VOICES 获取
  - text: 字符串(必填)—— 最大约10,000字符(大多数模型),30,000字符(Flash/Turbo v2),40,000字符(v2.5)
  - model_id: 字符串(默认 "eleven_monolingual_v1")—— 例如 "eleven_multilingual_v2"
  - output_format: 字符串(默认 "mp3_44100_128")—— 请参见下方格式
  - optimize_streaming_latency: 整数(0-4;不适用于 eleven_v3)
  - seed: 整数(可选,用于可复现性——不保证)
  - pronunciation_dictionary_locators: 数组(可选,最多3个词典)

输出格式:

  • MP3:mp3_22050_32, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192(Creator+)
  • PCM:pcm_16000, pcm_22050, pcm_24000, pcm_44100(Pro+)
  • uLaw:ulaw_8000(用于 Twilio)

重要提示: 输出是一个带有预签名下载链接的文件对象,位于 data.file.s3url(大约1小时后过期)。请及时下载。

2. 浏览可用声音

使用 ELEVENLABS_GET_VOICES 列出所有声音及其属性和设置。

工具:ELEVENLABS_GET_VOICES
输入:(无)

返回一个数组,位于 data.voices[],包含 voice_id、name、labels(性别、口音、用例)和设置。

3. 检查特定声音

使用 ELEVENLABS_GET_VOICE 在合成前获取候选声音的详细元数据。

工具:ELEVENLABS_GET_VOICE
输入:
  - voice_id: 字符串(必填)—— 例如 "21m00Tcm4TlvDq8ikWAM"
  - with_settings: 布尔值(默认为 false)—— 包含详细的声音设置

4. 检查订阅和积分

使用 ELEVENLABS_GET_USER_SUBSCRIPTION_INFO 在批量生成前验证计划限制和剩余积分。

工具:ELEVENLABS_GET_USER_SUBSCRIPTION_INFO
输入:(无)

5. 列出可用TTS模型

使用 ELEVENLABS_GET_MODELS 发现兼容模型,并筛选 can_do_text_to_speech: true。

工具:ELEVENLABS_GET_MODELS
输入:(无)

6. 流式传输音频和检索历史

使用 ELEVENLABS_TEXT_TO_SPEECH_STREAM 进行低延迟流式传输,使用 ELEVENLABS_GET_AUDIO_FROM_HISTORY_ITEM 重新下载之前生成的音频。

工具:ELEVENLABS_TEXT_TO_SPEECH_STREAM
  - 与 TEXT_TO_SPEECH 相同的核心输入,但返回一个用于低延迟播放的流

工具:ELEVENLABS_GET_AUDIO_FROM_HISTORY_ITEM
  - history_item_id: 字符串(必填)—— 来自之前生成的ID

已知陷阱

陷阱详情
文本长度限制大多数模型每次请求限制约10,000-20,000字符。超出会返回HTTP 400。将长文本分割成较小块(约5,000字符),逐块生成。
输出为预签名URLELEVENLABS_TEXT_TO_SPEECH 返回 data.file.s3url,大约1小时后过期(X-Amz-Expires=3600)。请及时下载音频文件。
配额和积分错误HTTP 401 quota_exceeded 或 HTTP 402 payment_required 表示积分不足或等级限制。在批量作业前使用 ELEVENLABS_GET_USER_SUBSCRIPTION_INFO 检查。
声音权限HTTP 401 missing_permissions 表示API密钥缺少 voices_read 范围。验证密钥权限。
模型兼容性并非所有模型都支持TTS。使用 ELEVENLABS_GET_MODELS 并筛选 can_do_text_to_speech: true。optimize_streaming_latency 参数不适用于 eleven_v3。
声音列表截断ELEVENLABS_GET_VOICES 可能返回大列表。请从完整的 data.voices[] 载荷中选择——预览可能显示不完整。

快速参考

工具Slug描述
ELEVENLABS_TEXT_TO_SPEECH将文本转换为语音,返回可下载的音频文件
ELEVENLABS_GET_VOICES列出所有可用声音及其属性
ELEVENLABS_GET_VOICE获取特定声音的详细信息
ELEVENLABS_GET_USER_SUBSCRIPTION_INFO检查订阅计划和剩余积分
ELEVENLABS_GET_MODELS列出可用的TTS模型及其能力
ELEVENLABS_TEXT_TO_SPEECH_STREAM为低延迟传输流式传输音频
ELEVENLABS_GET_AUDIO_FROM_HISTORY_ITEM从生成历史重新下载音频

Powered by Composio

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相关技能