elevenlabs · diff

git:20260812.0306678 to git:20260814.0e846b3

2 added, 0 removed. Audit A to A.

---
name: elevenlabs
description: Agent-callable ElevenLabs tools — generate spoken audio from text, create sound effects and multi-speaker dialogue, re-voice and clean up audio, transcribe audio and video, design synthetic voices, and manage voices, history, and quota. Use when the user mentions ElevenLabs or wants AI audio work — text to speech, narration, voiceover, transcription, voice changing, or sound design — even if they don't name ElevenLabs explicitly, e.g. "read this aloud", "make an MP3 of this", "transcribe this recording".
license: Elastic-2.0
compatibility: Run `npm install --omit=dev` in this directory, then `node cli.js`. The TypeScript source needs Node.js 22.18+; on older Node, run `cli.js` for build-it-yourself / prebuilt / alternative-runtime options.
metadata:
source: https://github.com/zapier/connectors/blob/main/apps/elevenlabs/SKILL.md
title: Elevenlabs
api-docs: https://elevenlabs.io/docs/api-reference/introduction
zapier-app-key: App226160CLIAPI
---
# Elevenlabs
<!-- BEGIN:skill-intro -->
Tools for the ElevenLabs AI-audio API: convert text to spoken audio in any of the account's voices, generate sound effects and multi-speaker dialogue, re-voice or denoise existing audio, transcribe audio and video by URL, design brand-new synthetic voices from a text description, and manage the account's voices, generation history, and credit quota. Audio-producing tools write the audio to a local file and return its path by default; pass `return_base64: true` to get the bytes inline instead (for consumers without filesystem access).
<!-- legal:disclaimer -->
_Independent, unofficial connector for Elevenlabs. Not affiliated with, endorsed by, or sponsored by Elevenlabs. "Elevenlabs" is a trademark of its owner, used only to identify the service this connector works with._
<!-- /legal:disclaimer -->
<!-- END:skill-intro -->
## When to use this
<!-- BEGIN:skill-use-cases -->
- Turn text into audio: narration, a spoken reply, a podcast-style dialogue, or a sound effect described in words.
- Transform existing audio: transcribe it, isolate the speech from background noise, or re-voice it in a different voice.
- Manage voices: find one in the account or the community library, add it, design a new one from a description, or free up voice slots.
- Check the account before big generations: remaining character credits, tier gates, and voice-slot usage via `getUserSubscription`.
<!-- END:skill-use-cases -->
## Setup
This is an [agentskills.io](https://agentskills.io) skill.
If the connector has not been installed as a skill yet, install it first with `npx skills add zapier/connectors --skill elevenlabs` (or your harness's own skill-install mechanism), then continue here. Installing the skill copies these files, not dependencies. Before running the CLI, a local MCP server, or `zapier-sdk` auth commands, run `npm install --omit=dev` here once. Importing the published package as a dependency in your own project instead? That `npm install` already resolves everything — see [`references/use-as-sdk.md`](references/use-as-sdk.md).
+ Want the actual repo source instead — to browse `references/`, run this connector's tests, or hack on it? See [`README.md`](README.md#cloning-the-source) for a scoped `git clone`.
+
The connector runs on **Node.js 22.18+**. Pick the reference that matches how you're running it, and load it before doing anything else:
| You have... | Load |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| An MCP-aware client — tools may already be loaded (e.g. `mcp__elevenlabs__<tool>`), or you can register a local server yourself (or guide the user to) | [`references/use-as-mcp.md`](references/use-as-mcp.md) |
| Terminal / subprocess access (you can run `node`) | [`references/use-as-cli.md`](references/use-as-cli.md) |
| Only your own code, importing this package as a dependency | [`references/use-as-sdk.md`](references/use-as-sdk.md) |
| No tool access, no terminal, no ability to import this package — you write your own code that calls the Elevenlabs API directly (e.g. a code-execution sandbox) | [`references/use-as-recipe.md`](references/use-as-recipe.md) |
## Scripts
<!-- BEGIN:skill-connections-note? -->
All scripts share the single `elevenlabs` connection. Audio-producing scripts accept `return_base64` (default false: audio is written to a temp file and returned as `audio_path`).
<!-- END:skill-connections-note -->
<!-- BEGIN:skill-scripts-table -->
| Script | Script name | Connections | Description |
| ---------------------------------- | ----------------------- | ----------- | --------------------------------------------------------------------------------------------- |
| `scripts/textToSpeech.ts` | `textToSpeech` | elevenlabs | Convert text to spoken audio in a chosen voice (resolve `voice_id` via `listVoices`). |
| `scripts/createSoundEffect.ts` | `createSoundEffect` | elevenlabs | Generate a sound effect (not speech) from a text description. |
| `scripts/textToDialogue.ts` | `textToDialogue` | elevenlabs | Generate a multi-speaker conversation from a list of `{ text, voice_id }` lines. |
| `scripts/speechToSpeech.ts` | `speechToSpeech` | elevenlabs | Re-voice existing speech in a different voice; source is an HTTPS URL or local path. |
| `scripts/isolateAudio.ts` | `isolateAudio` | elevenlabs | Remove background noise/music from a recording; source is an HTTPS URL or local path. |
| `scripts/speechToText.ts` | `speechToText` | elevenlabs | Transcribe audio/video from an HTTPS URL, with timestamps and speaker labels. |
| `scripts/designVoice.ts` | `designVoice` | elevenlabs | Design a new synthetic voice from a text description; returns candidate previews. |
| `scripts/createVoiceFromDesign.ts` | `createVoiceFromDesign` | elevenlabs | Save a designed voice (by `generated_voice_id` from `designVoice`) to the account. |
| `scripts/listVoices.ts` | `listVoices` | elevenlabs | List the account's voices — the `voice_id` resolver. |
| `scripts/getVoice.ts` | `getVoice` | elevenlabs | Get one voice's full metadata by id. |
| `scripts/searchVoiceLibrary.ts` | `searchVoiceLibrary` | elevenlabs | Search the community voice library by name, language, gender, age, accent. |
| `scripts/addSharedVoice.ts` | `addSharedVoice` | elevenlabs | Add a community library voice to the account (uses a voice slot). |
| `scripts/deleteVoice.ts` | `deleteVoice` | elevenlabs | Remove a voice from the account; frees a voice slot. Irreversible for designed/cloned voices. |
| `scripts/listModels.ts` | `listModels` | elevenlabs | List models with capabilities and per-request character limits. |
| `scripts/listHistory.ts` | `listHistory` | elevenlabs | List previously generated audio items; filter by voice, model, date, or text. |
| `scripts/getHistoryItem.ts` | `getHistoryItem` | elevenlabs | Get one generation's metadata (voice, text, cost) by `history_item_id`. |
| `scripts/downloadHistoryAudio.ts` | `downloadHistoryAudio` | elevenlabs | Re-fetch the audio of a previous generation — free, no new credits. |
| `scripts/deleteHistoryItem.ts` | `deleteHistoryItem` | elevenlabs | Permanently delete one generated item from history. Irreversible. |
| `scripts/getUserSubscription.ts` | `getUserSubscription` | elevenlabs | Check tier, character credits used/limit, reset time, and voice-slot usage. |
<!-- END:skill-scripts-table -->
<!-- BEGIN:disambiguation-and-refusals? -->
## Disambiguation & refusals
**Name-matched voices.** Voices are looked up by human-friendly names (`listVoices` search, `searchVoiceLibrary`), and names collide — several account or library voices can share "George" or "Rachel". Before generating with, deleting, or adding a voice matched by name: count exact (case-insensitive) name matches. Exactly one → act on it without asking. Two or more → stop, list the candidates with a distinguishing field (category, description, or accent), and ask which one. Never silently pick. The same rule applies to history items matched by their source text via `listHistory` search before `deleteHistoryItem`.
**Unsupported operations.** This connector does not clone voices from sample recordings (instant or professional voice cloning) and does not generate music. If asked, say the operation isn't supported here and stop — don't substitute `designVoice` (which invents a voice from a description, not from someone's recording) or `createSoundEffect` (which makes sound effects, not music) and report success for an action you didn't perform.
<!-- END:disambiguation-and-refusals -->
## Auth
Every shape passes auth as one connection **selector**, not the secret — a `[<resolver>:]<value>` string. Every connector accepts `zapier:<connection-id>` (Zapier-managed auth — routes through Zapier's auth, retries, and governance layer); some also accept one or more direct-token resolvers (naming and count vary per connector) — check this connector's own resolvers rather than assuming. The `<resolver>:` prefix is optional; a bare value goes to the first resolver that claims it — a UUID-shaped bare value always claims `zapier:`. Each script declares the connections it needs and the resolvers each accepts. The exact syntax for passing a connection (and how to see this connector's resolver list) differs by shape — see the reference you loaded above.
Checking what's already configured first? Don't dump environment values to do it — `env` or `env | grep <name>` prints the value along with the name, leaking a live credential into the transcript if one is set. Check names only (`env | cut -d= -f1 | grep -i <name>`) or test a known name directly (`[ -n "$VAR_NAME" ]`).
<!-- BEGIN:skill-auth-notes? operational behavior that differs by WHICH resolver is used — a safety gate only one path enforces, scopes/permissions that differ between resolvers, a billing/plan difference tied to the auth path, or a feature only available (or unavailable) on one resolver. Not for describing how to obtain or pass a credential — that's references/use-without-zapier.md's job. Leave this region empty (unfilled) if every resolver behaves identically. -->
<!-- END:skill-auth-notes -->
No connection yet? Pick one — and follow the reference's own flow to obtain it; never just ask the user for a connection id or token as if they already have one memorized:
| | Load |
| ------------------------------------ | ---------------------------------------------------------------------- |
| Pass the credential directly | [`references/use-without-zapier.md`](references/use-without-zapier.md) |
| Route it through a Zapier connection | [`references/use-with-zapier.md`](references/use-with-zapier.md) |
## Output format
Every script returns a `{ data, meta }` envelope:
- **`data`** — the script's result (the shape its `outputSchema` declares; see the reference you loaded above for how to inspect a script's exact schema in your shape).
- **`meta.outputDataValidation`** — what validating `data` did:
- `{ skipped: false, droppedPaths: null }` — validated, nothing removed.
- `{ skipped: false, droppedPaths: [...], instruction }` — validated, but those paths were stripped from `data`: fields the script returned from the API that the `outputSchema` doesn't declare. If you need them, re-run with output validation skipped.
- `{ skipped: true }` — validation was bypassed; `data` is the raw, unchecked script output.
**Reading dropped fields / `skipOutputDataValidation`.** To receive the raw, unvalidated result, opt out of output validation (the exact syntax differs by shape — see the reference you loaded above). Input validation is never skipped.
**Trimming the result / `filterOutputData`.** To shrink a large result down to the fields you need, pass a jq expression that post-processes `data` (again, exact syntax per shape). The jq runs against `data` only, NOT the `{ data, meta }` envelope, so write it rooted at `data` (run the script's `--help` — or your shape's equivalent — to see its output schema). The transformed value replaces `data`, `meta` is preserved, and the result is NOT re-validated against the output schema.
<!-- BEGIN:skill-references-table -->
## References
Load the matching reference file before working in that area:
| Reference | Covers | Load it when |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| [ElevenLabs API gotchas](references/elevenlabs-api-gotchas.md) | Authentication, errors, model and voice resolution, generation limits, transcription, pagination, and history | Choosing IDs or models, preparing audio inputs, paginating results, or recovering from API errors |
<!-- END:skill-references-table -->