AudioCodes (LiveHub) and Deepgram Voice Agent API
AudioCodes (LiveHub) and Deepgram Voice Agent API
Learn how to integrate Deepgram Voice Agent API with AudioCodes (LiveHub).
AudioCodes (LiveHub) and Deepgram Voice Agent API
Learn how to integrate Deepgram Voice Agent API with AudioCodes (LiveHub).
AudioCodes VoiceAI Connect is a powerful platform that enables the integration of telephony and contact center platforms with the cloud, thus facilitating the use of Deepgram in your customer journey.
It offers a simple user interface for standing up connections and developer-friendly APIs for advanced integrations.
Note, AudioCodes offers two versions of this platform - LiveHub, which is the self serve version, as well as VoiceAI Connect Enterprise, which is the managed services version.
This guide will focus on LiveHub, as it is accessible to all users. However, if you are using VoiceAI Connect Enterprise, the steps and instructions laid out here will be very similar. In addition, you will have the help of the AudioCodes Professional Services team to help you with the configuration. Refer to this doc for guidance, but note that the exact steps may vary slightly depending on how your specific version of VoiceAI Connect Enterprise is built.
Before you start, you’ll need to follow the steps in the Make Your First API Request guide to obtain a Deepgram API key.
You will need an AudioCodes LiveHub account to connect the two services.
Most enterprise call centers ultimately rely on SIP for call signaling and RTP for media transport — the core VoIP protocols that have underpinned telephony since the late 1990s. Deepgram’s Voice Agent API speaks WebSocket. These worlds don’t connect natively.
AudioCodes VoiceAI Connect already bridges that gap for thousands of enterprises — it accepts calls from any number of call center platforms or telephony systems and exposes them as WebSocket connections that AI systems can connect to.
But there is still a missing piece. Someone has to take that WebSocket audio stream, forward it to Deepgram’s Voice Agent API in real time, route the agent’s synthesized speech back to the caller, and handle everything that can go wrong in between. Rather than have every customer write that plumbing from scratch, Deepgram maintains an open-source SDK — deepgram-audiocodes-bridge — that solves it once.
The bridge runs a WebSocket server that speaks the AudioCodes Bot API, manages a Deepgram Voice Agent connection per call, routes audio bidirectionally in real time, and emits typed events your application code hooks into. Audio frame parsing, protocol handshaking, barge-in handling, TTS streaming, and session teardown all live inside the SDK — your code stays focused on business logic.
For installation, the full event and method reference, authentication walkthroughs, and runnable examples, see the deepgram-audiocodes-bridge README. The rest of this page covers the AudioCodes-specific context that’s most useful to know before you start.
A minimal bridge looks like this:
That’s the whole shape of an integration: configure once, register handlers for the events you care about, and run. Everything else — audio routing, barge-in, session teardown — is handled inside the SDK.
conversation_idEvery session_start event includes a conversation_id — the AudioCodes conversation identifier surfaced from the session.initiate handshake.
This is the foreign key that ties the Deepgram session to the upstream CCaaS call record. Use it to associate transcript writes, screen pops, disposition codes, and compliance logs with the correct call in Genesys, Amazon Connect, Salesforce, or wherever your call data ultimately lives. Without it, you have a transcript with no way to reconcile it back to the call it came from.
Once your bridge is running and reachable from the public internet (via your own hosting, or a tunnel like ngrok for testing), point an AudioCodes LiveHub Bot Connection at it.
Follow the LiveHub Bot Connection setup guide, following the “Add new voice bot connection” instructions:
wss://your-host.example.com/).BridgeConfig. See the SDK’s auth example for copy-pasteable walkthroughs of all three modes.Always consult the AudioCodes API documentation for the most up to date information.