cost. Model providers bill per use.
privacy. Speech is sent to the providers you configure.
Who it is forA developer prototyping a voice assistant.
The problemTesting a voice agent usually needs a full client app.
The outcomeA voice agent you can talk to from your terminal before connecting any client.
What you need first
- Python with pip
- A LiveKit server or LiveKit Cloud project
- API keys for the model providers you choose
Steps
- Install with
pip install "livekit-agents[openai,deepgram,cartesia]" - Write myagent.py with an Agent and AgentSession as in the README example
- Run it locally with
python myagent.py console - Switch to
python myagent.py devto connect it to LiveKit
Prompt for your agent
Using livekit/agents, install `pip install "livekit-agents[openai,deepgram,cartesia]"`, write myagent.py based on the README weather tool example for <my use case>, and run `python myagent.py console`.
Caveat. Dev and start modes need a LiveKit server or LiveKit Cloud project.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for livekit/agents and "Build a voice agent and talk to it in the terminal"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer