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 mantrakp04

Adds real-time voice conversations to a custom agent runtime using ElevenLabs Speech Engine. Built for developers who run their own WebSocket server for speech-to-text and text-to-speech.

  • Score 88
  • 3.3k stars
  • GPL-3.0
  • 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/mantrakp04/ardia /tmp/ardia && mkdir -p ~/.claude/skills && cp -r /tmp/ardia/.claude/skills/elevenlabs/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

The speech-engine skill helps developers add a real-time voice interface to a custom agent. 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. The skill covers creating a Speech Engine resource, serving the WebSocket handler in Python or TypeScript, and issuing conversation tokens for a browser client built with @elevenlabs/react or @elevenlabs/client.

The guidance says speech-recognition text is untrusted input and should not directly control tools or privileged actions. It keeps JWT verification on by default and warns against disabling it without an IP allowlist or shared-secret header. It is aimed at developers building voice chat agents or adding voice to runtimes such as OpenClaw or Hermes. It requires an ElevenLabs API key.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create Speech EngineCreates a Speech Engine resource that points at a public WebSocket URL.
  • Serve WebSocket handlerRuns engine.serve() in Python or speechEngine.attach() in TypeScript.
  • Browser conversation tokensShows a server endpoint that issues WebRTC tokens for the browser client.
  • Interruption handlingThe SDK handles user interruptions, and TypeScript can pass signals to downstream async work.
  • Disconnect callbacksSeparates clean closes (onClose) from unexpected drops (onDisconnect).
  • React voice clientUses the useConversation hook to start a session with a conversation token.
  • First message overrideLets the agent greet the user first through overrides.agent.firstMessage.

What you need

  • ElevenLabs API key (ELEVENLABS_API_KEY)
  • Public HTTPS or WebSocket URL for the Speech Engine server
  • Python or TypeScript server environment
  • Browser client for voice sessions

Try asking

  • Add a Speech Engine WebSocket server to my agent in Python
  • Create a conversation token endpoint for a React voice client
  • Show me how to keep speech text from triggering my tools

Good to know

  • Disabling JWT auth exposes the server to anyone who finds the URL unless an IP allowlist or shared-secret header is in place.
  • Local development needs a public HTTPS URL, for example from ngrok.
  • The first message override must be enabled on the Speech Engine resource before the client can set it.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/elevenlabs/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

Should the ElevenLabs API key go in browser code?

No. The source says never put ELEVENLABS_API_KEY in browser code. The browser requests a conversation token from a server endpoint instead.

When should I use the agents skill instead?

Use the agents skill when you create or configure a hosted ElevenLabs Conversational AI agent with platform-managed prompts, tools, workflows, phone numbers, or widgets.

Is JWT verification on by default?

Yes. Both attach() and serve() verify a JWT on every incoming WebSocket by default, and the source says not to turn this off.

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 GPL-3.0 licence. The service it connects to may have its own pricing.

Is speech-engine safe to use?

It scores 88 of 100. Grades: maintenance A, licence C, 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.