- Home
- Skills
- APIs & Backend
- deepgram voice agent setup
Works with the AI Agents you already use
deepgram voice agent setup
Expert configuration for Deepgram Voice Agent API focusing on telephony audio, low-latency tuning, and function calling.
$19
deepgram voice agent setup
Example session with this skill installed
I need a configuration for a Deepgram voice agent that will run over a phone line via SIP. It needs to handle a transfer to a human and use an expressive voice.
- Read your context and instructions
- Compiled the deepgram voice agent
I have generated the configuration for a telephony-optimized Deepgram Voice Agent. Since this is for a phone line, I have set the encoding to mulaw at 8000 Hz to match standard SIP/RTP streams, which minimizes transcoding latency.
Deepgram Telephony Configuration
{
"type": "Settings",
"agent": {
"listen": {
"model": "nova-2-phonecall",
"encoding": "mulaw",
"sample_rate": 8000
},
"think": {
"model": "gpt-4o",
"instructions": "You are a polite phone assistant. Keep responses under two sentences. When a user asks for a person, use the transfer_to_agent tool immediately."
},
"speak": {
"model": "aura-asteria-en",
"encoding": "mulaw",
"sample_rate": 8000
}
},
"context": {
"functions": [
{
"name": "transfer_to_agent",
"description": "Transfers the caller to a human representative.",
"parameters": {
"type": "object",
"properties": {
"department": {
"type": "string",
"enum": ["sales", "support"]
}
}
}
},
{
"name": "end_call",
"description": "Hangs up the call after the agent finishes speaking."
}
]
}
}
Configuration Breakdown
- Audio Format: Uses
mulawat 8kHz. This is critical for SIP; using 16kHz or 48kHz here will cause "chipmunk" audio or high CPU overhead on your gateway. - Voice Selection:
aura-asteria-enis selected for high expressivity. Note that speed controls only work on supported models. - Function Logic: The
transfer_to_agenttool includes a department parameter to route the call correctly on your backend.
Next steps
- Verify the
aura-asteria-enmodel is available in your region's Deepgram dashboard. - Implement a WebSocket proxy to inject your
DEEPGRAM_API_KEYso it is not exposed in the client. - Run the "Interruption Test": Speak over the agent to ensure your client-side code flushes the audio buffer immediately.
Connects securely to your tools. The creator never sees your data.
About this skill
Voice-driven agents live or die by latency and audio configuration. This skill provides the technical precision required to configure the Deepgram Voice Agent API, moving past generic LLM prompting into the specifics of WebSocket settings, telephony audio formats, and barge-in tuning. It bridges the gap between a text-based prompt and a production-ready voice bot that handles phone line noise and real-time interruptions.
What it does
- Settings Configuration defines the JSON structure for
listen,think, andspeakmodules to ensure API acknowledgement. - Audio Optimization sets encoding and sample rates for SIP/RTP (mu-law 8kHz) versus browser (L16 24kHz) to prevent robotic or static artifacts.
- TTS Integration configures internal Deepgram voices or external HTTPS endpoints for third-party providers like ElevenLabs.
- Tool Orchestration implements function calling for server-side actions like
transfer_to_agentandend_call. - Latency Control tunes barge-in sensitivity and response timing to achieve sub-1s turnaround.
How it works
- Define the Stack by providing your target platform (Browser vs Telephony) and API version.
- Configure Settings by generating the initial WebSocket handshake JSON including model selection and greeting.
- Map Functions to create the tool schemas for transfers, hang-ups, or data retrieval.
- Debug and Test using the provided 5-point test plan to validate silence handling and interruptions.
Frameworks & tools
Built for the Deepgram Voice Agent API (WebSocket). Compatible with SIP/RTP telephony gateways, AudioSocket, and browser-based WebAudio implementations using linear16 or mu-law encodings.
Why this beats prompting it yourself
Generic AI doesn't know the specific field names, sample rate requirements for phone lines, or the necessity of public HTTPS for self-hosted TTS endpoints. This skill prevents common failures like mismatched encodings or stalled agents caused by incorrect function-call response handling.
Use cases
- AI Receptionist for handling inbound SIP calls with automated transfers.
- Voice Assistant for web apps requiring low-latency browser audio.
- Automated Outbound bots for simple scheduling or data collection.
- Custom TTS Pipelines utilizing self-hosted Kokoro or Chatterbox endpoints.
Known limitations
Does not provide the proxy server code required to protect API keys from the browser. Model and voice IDs must be verified against current Deepgram documentation as these change frequently.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 12 days ago
Permissions
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.