Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 79
  • 600 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-engine

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install speech-engine in Claude Code

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

A

No 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 →

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.

speech-engine Install

Add to stack

Loading.