Works with the AI Agents you already use

    deepgram voice agent setup

    by MMA Digital Labs

    1

    Expert configuration for Deepgram Voice Agent API focusing on telephony audio, low-latency tuning, and function calling.

    $19

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    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 mulaw at 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-en is selected for high expressivity. Note that speed controls only work on supported models.
    • Function Logic: The transfer_to_agent tool includes a department parameter to route the call correctly on your backend.

    Next steps

    1. Verify the aura-asteria-en model is available in your region's Deepgram dashboard.
    2. Implement a WebSocket proxy to inject your DEEPGRAM_API_KEY so it is not exposed in the client.
    3. 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, and speak modules 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_agent and end_call.
    • Latency Control tunes barge-in sensitivity and response timing to achieve sub-1s turnaround.

    How it works

    1. Define the Stack by providing your target platform (Browser vs Telephony) and API version.
    2. Configure Settings by generating the initial WebSocket handshake JSON including model selection and greeting.
    3. Map Functions to create the tool schemas for transfers, hang-ups, or data retrieval.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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.

    Frequently Asked Questions

    This skill provides the exact JSON configurations and WebSocket parameters required to move beyond text prompts into a functional voice bot, specifically addressing audio artifacts, high latency, and telephony-specific encoding issues.

    It is fully compatible with both browser-based WebAudio (L16) and telephony gateways (G.711 mu-law), ensuring clear audio regardless of whether your agent lives on a website or a phone line.

    You will receive a complete implementation blueprint including WebSocket handshake structures, tool-calling schemas for transfers/hang-ups, and a 5-point latency testing protocol.

    The skill provides the logic for the `listen`, `think`, and `speak` modules; however, you will still need a proxy server or middleware to securely host your Deepgram API keys and handle the initial connection.

    Yes, it includes specialized configurations for the 'speak' module that allow you to route audio through external HTTPS endpoints, such as ElevenLabs or self-hosted TTS providers.

    While designed for the Deepgram Voice Agent API, the tool-calling schemas and audio optimization logic can be adapted for most WebSocket-based voice frameworks with minor modifications.

    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.