Every call on your trunk, live, in your app

Stream both sides of every call on your Ahoy SIP trunk to your own software in real time. Build live transcripts, AI agents, call coaching or analytics on top. Works with any phone system. Free with your trunk.

How it works

  1. Turn it on for a trunk. In the Ahoy portal, go to API, then Live Call Audio, and pick the trunks you want to stream. Our team approves it, usually the same day.
  2. Connect your app. Open one secure WebSocket with your API key. Every call on your streaming trunks arrives on it, with both sides of the conversation as separate audio tracks.
  3. Build what you want. Send the audio to your own speech or AI service, or let us transcribe it live with your own xAI or OpenAI key.

No changes to your phone system. No extra hardware. No call recording on our side.

Why Live Call Audio

Works with any phone system

3CX, FreePBX, Yeastar, Bicom, Cisco or something custom. If it connects to an Ahoy SIP trunk, its calls can stream. You don’t install anything on the PBX.

Both sides, in real time

Each call arrives as two audio tracks, one for each side, in 20 millisecond chunks as people speak. You always know who said what.

Twilio compatible

Already built for Twilio Media Streams? Give us your WebSocket address and we send every call in the same format: the same connected, start, media, dtmf and stop messages, mu-law audio at 8 kHz. Point it at Ahoy and your app keeps working.

Live transcripts with your own key

Save your xAI or OpenAI API key in the portal and we transcribe both sides of every call as it happens. Transcripts arrive on the same connection as the audio, labeled by side. You pick the model, and the provider bills you directly at its own rates.

Key presses included

When a caller presses a key, you get a dtmf event with the digit and the side that pressed it. Useful for IVR analytics and agent assist.

See it work before you write code

Click Watch live in the portal, make a test call, and watch the transcript of both sides appear as you talk. The first 60 seconds of calls each day are transcribed free, so you can try it with no key at all.

Free with your trunk

There’s no charge for streaming. You already pay for the trunk. If you use transcription, your provider bills you for it.

What you can build

UseHow Live Call Audio helps
Live transcriptsEvery word, both sides, on screen while the call happens
AI agent assistFeed the conversation to your AI and surface answers to the agent in real time
Call coachingSpot keywords, silence and talk time as calls happen, not days later
Compliance checksFlag required phrases that were missed while there’s still time to say them
CRM notesWrite call summaries into your CRM the moment the call ends
AnalyticsMeasure talk ratios, sentiment and topics across every call on a trunk

A few lines of code

import WebSocket from "ws";

const ws = new WebSocket("wss://stream.ahoy.tel/stream", {
  headers: { Authorization: "Bearer " + process.env.AHOY_API_KEY },
});

ws.on("message", (raw) => {
  const e = JSON.parse(raw);
  if (e.event === "start") console.log("Call started", e.parties);
  if (e.event === "media") {
    const audio = Buffer.from(e.payload, "base64"); // 20 ms of audio, one side
    // send it to your own AI here
  }
  if (e.event === "transcript" && e.final) console.log(`[side ${e.track}] ${e.text}`);
  if (e.event === "dtmf") console.log("Pressed", e.digit);
});

Full event reference and Python examples are in the docs.

Built for privacy and control

  • Only your calls, only to you. Each call is matched to the trunk it ran on and sent only to that trunk’s account. We tested it with 120 simultaneous calls across two accounts: every packet reached the right account, and none reached the other.
  • We don’t keep your calls. Audio and transcripts are streamed out, never stored on our side.
  • You choose the trunks. Live audio is off until you turn it on, trunk by trunk, and our team approves each change.
  • Your keys stay encrypted. Transcription keys are encrypted, never shown again after you save them, and used only for your calls.
  • Every viewer is logged. Each Watch live session is recorded with the user’s name and time.
  • Secure connections only. Streams use encrypted WebSockets (wss://).

Recording and monitoring calls is regulated, and some states require everyone on a call to agree. You’re responsible for giving the notices and getting the consents the law requires. See our Terms of Service.

Frequently asked questions

Do I need to change my phone system?

No. Streaming happens on our network, on your Ahoy SIP trunk. Your PBX doesn’t know or care.

What does it cost?

Streaming is free with your Ahoy SIP trunk. If you turn on transcription with your own xAI or OpenAI key, that provider bills you directly.

Which phone systems does it work with?

Any phone system connected to an Ahoy SIP trunk, including 3CX, FreePBX, Yeastar, Bicom and custom platforms.

What audio format do I get?

G.711 at 8 kHz, one track per side of the call, in 20 millisecond chunks, base64 encoded. With the Twilio-compatible option, audio is always mu-law, exactly as Twilio sends it.

Can I use my existing Twilio Media Streams app?

Yes. Add your WebSocket address in the portal and we connect to it for every call, using Twilio’s message format. You can add up to 3 addresses, each for all trunks or only the trunks you choose.

Can more than one app receive the same call?

Yes. Any number of apps can connect to our WebSocket at once, and you can also send calls to up to 3 addresses of your own.

Do you record or store my calls?

No. We stream the audio to you and keep only usage records, such as call times and lengths.

Which transcription providers are supported?

xAI and OpenAI. You save your own API key in the portal and choose the model. We only list models your key can actually use.

Can I try it without writing code?

Yes. Use Watch live in the portal and make a test call. The first 60 seconds of calls each day are transcribed free.

How many calls can stream at once?

Far more than most businesses need. We’ve tested 120 simultaneous calls with every packet delivered.

Is it available for TLS trunks?

Yes. Live Call Audio works on both UDP and TLS trunks.

Start streaming your calls

Already an Ahoy customer? Turn it on in the portal under API, then Live Call Audio.

New to Ahoy? Get a SIP trunk that works with your phone system, with Live Call Audio included at no extra cost.