speech-engine
Skill by elevenlabs
Adds real-time voice conversations to a custom agent runtime using ElevenLabs Speech Engine. Built for developers who keep agent logic on their own server and connect it to ElevenLabs speech-to-text and text-to-speech.
Install speech-engine
Built from the published package, never by AI.
git clone --depth 1 https://github.com/elevenlabs/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/speech-engine ~/.claude/skills/speech-engineRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/elevenlabs/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/speech-engine ~/.gemini/antigravity-cli/skills/speech-engineAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Speech Engine is a skill from ElevenLabs for adding real-time voice conversations to a custom agent runtime. ElevenLabs handles microphone audio, speech-to-text, turn-taking, text-to-speech, and browser playback. The developer's server exposes a Speech Engine WebSocket endpoint and streams response text back to be spoken.
The skill covers creating a Speech Engine resource, starting a server with serve() in Python or attach() in TypeScript, issuing conversation tokens from a server endpoint, and starting browser sessions with @elevenlabs/react or @elevenlabs/client. It advises treating speech-recognition text as untrusted input and keeping JWT verification on. It is aimed at developers who want voice on their own server logic, such as OpenClaw or Hermes style agent runtimes.
Written from the project's SKILL.md and checked against it.
What it can do
- Create a Speech Engine resourceRegisters a Speech Engine with a public WebSocket URL using the ElevenLabs SDK in Python or TypeScript.
- Run a Speech Engine serverStarts a WebSocket server with serve() in Python or attach() in TypeScript to handle voice sessions.
- Stream response text as speechSends response text, as a string or async iterable, back through the SDK to be converted to audio.
- Handle interruptionsCancels or stops in-progress responses when the user interrupts while the agent is speaking.
- Issue conversation tokensProvides a server endpoint that returns a conversation token so the browser never sees the API key.
- Browser client sessionsShows how to start a voice session with @elevenlabs/react using a server-issued conversation token.
- Validate speech inputGuides keeping raw speech-recognition text away from tools, secrets, and privileged actions.
What you need
- ELEVENLABS_API_KEY
- Node.js for the TypeScript examples
- Python for the Python examples
- A public HTTPS URL for local development, such as ngrok
Try asking
- Set up a Speech Engine server in Express that streams replies as speech
- Create a Speech Engine resource pointing to my public wss URL
- Add a token endpoint and React client to start a voice session
Good to know
- Disabling JWT authentication is marked as dangerous and should only be used with a network-level control in place.
- Speech Engine is for developer-owned server logic; hosted ElevenLabs Conversational AI agents use the separate agents skill.
- Local development needs a public HTTPS URL to receive WebSocket connections.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: speech-engine/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to speech-engine
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
speech-engine: common questions
What is ElevenLabs Speech Engine used for?
The source describes it as adding real-time voice conversations to a custom agent runtime, connecting developer-owned server logic to ElevenLabs speech-to-text and text-to-speech.
Does the server handle speech recognition and playback?
The source says ElevenLabs handles microphone audio, speech-to-text, turn-taking, text-to-speech, and browser playback, while the developer's server streams response text back.
Is authentication on by default?
Yes. The source says both attach() and serve() verify a JWT on every incoming WebSocket by default, and recommends leaving this on unless a compensating control exists.
How do I install speech-engine?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is speech-engine free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is speech-engine safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to speech-engine?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
