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.
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-engineRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/mantrakp04/ardia /tmp/ardia && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ardia/.claude/skills/elevenlabs/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
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
ANo 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 →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
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.
