Community程式設計與開發github.com

ElevenLabs 語音自動化

透過 Composio MCP 整合,自動化 ElevenLabs 文字轉語音工作流程:生成語音、瀏覽聲音、檢查訂閱限制、列出模型、串流音訊以及檢索歷史記錄。

ElevenLabs 語音自動化 是什麼?

此技能提供一個完整的 Automata 工具集,用來與 ElevenLabs TTS API 互動,主要透過 Composio MCP 伺服器運作。它能讓 AI 代理直接執行文字轉語音轉換(限制約 10,000 至 40,000 字元)、瀏覽完整的聲音庫並擷取詳細的聲音元數據,以及檢查使用者訂閱限額和剩餘點數,以避免大量生成時發生錯誤。此外,它還支援列出相容的 TTS 模型(使用 `can_do_text_to_speech` 篩選器),以及低延遲的音訊串流和從歷史項目重新下載音訊。所有輸出(如語音檔案)均以預簽署的 S3 URL 形式回傳,有效期約一小時,因此代理必須及時下載音訊。同時,文件中也明確指出常見的陷阱,例如字數超限、配額錯誤、權限不足,以及模型相容性問題(例如 `optimize_streaming_latency` 不支援 `eleven_v3` 模型)。

相容平台~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。將長文字分割成區塊(約 5000 字元),並逐區塊生成。
輸出為預簽署 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[] 負載中選取——預覽可能看起來被截斷。

快速參考

工具代碼描述
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從生成歷史記錄重新下載音訊

由 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.

相關技能