New AssemblyAI-STT-3.7: Next-generation transcription models. Learn more about AssemblyAI-STT-3.7
Insights & Use Cases

Vapi voice agent with AssemblyAI-STT-3.7-Realtime-Agent

Run AssemblyAI-STT-3.7-Realtime-Agent inside a Vapi voice agent today with a custom transcriber, or use Vapi's built-in AssemblyAI provider. Setup and code.

Abstract green cylinder illustration

Written by

Kelsey Foster

Published on

18 November 2026

Vapi is one of the fastest ways to get a voice agent onto a real phone number. It handles telephony, turn-taking and orchestration, and it lets you choose the speech-to-text provider, so the decision that matters is which model does the listening.

That choice matters more than it looks. Your LLM can only reason about the text it receives, and your TTS can only read back what the LLM wrote. Get a policy number wrong at the transcriber and the whole turn is wrong, confidently and fluently.

This guide covers two ways to use AssemblyAI streaming speech-to-text in a Vapi assistant:

  1. Vapi's custom transcriber, pointed at a small bridge server, which runs AssemblyAI-STT-3.7-Realtime-Agent (assemblyai-stt-3-7-realtime-agent) today.
  2. Vapi's built-in AssemblyAI provider, which is a dropdown in the dashboard. As of November 16, 2026, it lists Universal-3.6 Pro Realtime (universal-3-6-pro), the previous flagship, which is still fully supported, and Universal-3.5 Pro Realtime. It doesn't list the 3.7 models yet.

Why AssemblyAI-STT-3.7-Realtime-Agent for a Vapi agent?

STT-3.7-Realtime-Agent is the model the AssemblyAI docs recommend for voice agents. It's trained on real voice-agent and telephony conversations in which every speaker's role is labeled. For each turn, it uses what the agent and the caller said earlier, plus the most relevant audio from earlier in the call, to tell the caller apart from background speech.

Here's how it compares with other streaming systems on AssemblyAI's English voice-agent benchmark (12,460 scenarios, 522 speakers, telephony audio with no, low or heavy noise). Lower is better in every row:

Metric AssemblyAI-STT-3.7-Realtime-Agent Soniox Realtime v6 ElevenLabs Scribe v3 Live Deepgram Nova-3
Normalized word error rate 4.53% 6.02% 7.38% 8.64%
Word error rate, heavy background noise 5.32% 6.75% 8.90% 9.93%
Entity error rate, all entities 13.2% 15.2% 16.9% 25.1%
Phone numbers 2.03% 2.20% 2.96% 4.35%
Names 10.18% 12.47% 14.02% 23.69%
Email addresses 13.98% 15.24% 16.26% 31.46%
Dates and times 17.66% 26.22% 30.09% 43.89%

Source: AssemblyAI's voice-agent benchmark, from the AssemblyAI-STT-3.7-Realtime-Agent research post, runs August to November 2026. Every provider was streamed through the same harness with no key terms or context.

Of the 26 streaming models we ran, STT-3.7-Realtime-Agent has the lowest normalized word error rate, and its lead over Soniox Realtime v6 holds at every noise level. Its entity error rate is also the lowest, ahead of Soniox Realtime v6, ElevenLabs Scribe v3 Live and Deepgram Nova-3, and it makes fewer errors than every other provider on each entity class above. It also drops the fewest one- and two-word replies, and no other provider has both less background speech and fewer dropped short replies.

Compared with Universal-3.6 Pro Realtime, the model in Vapi's dropdown today, STT-3.7-Realtime-Agent makes 80% fewer number errors on Voice Code Bench (11.28% → 2.27%). It adds 47% fewer words while the caller is silent (2.53 → 1.34 per 1,000 words), drops 38% fewer short replies (0.29% → 0.18%), and has 12% fewer false end-of-turn events. A single WER figure hides most of this, which is why we've argued that word error rate alone is broken as a buying metric for agents.

Two ways to plug AssemblyAI into Vapi

Custom transcriber (this guide's bridge) Vapi's built-in AssemblyAI provider
Speech model assemblyai-stt-3-7-realtime-agent universal-3-6-pro or universal-3-5-pro (as of Nov 16, 2026)
Setup Run a small WebSocket server; set transcriber.provider to custom-transcriber Pick AssemblyAI in the dashboard, or set provider assembly-ai
Agent context Earlier caller turns carried forward by the model agentContext plus automatic updates after each assistant turn
Billing for speech-to-text Your AssemblyAI account, $0.45/hr Your AssemblyAI key, added in Vapi

If you want the newest model in production this week, use the custom transcriber. If you want zero extra infrastructure, use the built-in provider and switch models when Vapi adds 3.7.

Build your Vapi agent on better input

Get a free AssemblyAI API key, run the bridge, and hear the difference on names, account numbers and quiet one-word replies.

Sign up free

Quick start

Clone the reference repo:

git clone https://github.com/kelsey-aai/voice-agent-vapi-assemblyai
cd voice-agent-vapi-assemblyai
pip install -r requirements.txt
cp .env.example .env

Open .env and add your Vapi and AssemblyAI keys. If you don't have an AssemblyAI key yet, grab a free one.

Option 1: run AssemblyAI-STT-3.7-Realtime-Agent through a custom transcriber

Vapi's custom transcriber lets you plug any streaming speech-to-text service into an assistant. Vapi opens a WebSocket to your server and sends a start message, then streams the call as raw 16-bit PCM in two channels: the caller on channel 0 and the assistant on channel 1. Your server sends back transcriber-response messages, either partial or final.

That maps cleanly onto the AssemblyAI streaming API. The bridge takes channel 0, streams it to STT-3.7-Realtime-Agent, and turns each Turn message into a Vapi response. Every AssemblyAI Turn re-transcribes the whole turn, which is exactly how Vapi treats partials: each one replaces the last until the final arrives.

The bridge

"""Vapi custom transcriber backed by AssemblyAI-STT-3.7-Realtime-Agent."""

import asyncio
import json
import os
from urllib.parse import urlencode

import websockets
from fastapi import FastAPI, WebSocket, WebSocketDisconnect

app = FastAPI()

ASSEMBLYAI_API_KEY = os.environ["ASSEMBLYAI_API_KEY"]
KEYTERMS = [t.strip() for t in os.getenv("KEYTERMS", "").split(",") if t.strip()]


def assemblyai_url(sample_rate: int) -> str:
    params = [
        ("speech_model", "assemblyai-stt-3-7-realtime-agent"),
        ("encoding", "pcm_s16le"),
        ("sample_rate", sample_rate),
    ]
    if KEYTERMS:
        params.append(("keyterms_prompt", json.dumps(KEYTERMS)))
    return f"wss://streaming.assemblyai.com/v3/ws?{urlencode(params)}"


def customer_channel(buf: bytes, channels: int) -> tuple[bytes, bytes]:
    """Return (caller audio, leftover bytes) from interleaved 16-bit PCM."""
    frame = 2 * channels
    usable = len(buf) - len(buf) % frame
    if channels == 1:
        return buf[:usable], buf[usable:]
    samples = memoryview(buf[:usable]).cast("h")
    return samples[0::channels].tobytes(), buf[usable:]


@app.websocket("/api/custom-transcriber")
async def custom_transcriber(vapi_ws: WebSocket):
    await vapi_ws.accept()

    # {"type": "start", "encoding": "linear16", "container": "raw",
    #  "sampleRate": 16000, "channels": 2}
    start = json.loads(await vapi_ws.receive_text())
    sample_rate = int(start.get("sampleRate", 16000))
    channels = int(start.get("channels", 2))

    async with websockets.connect(
        assemblyai_url(sample_rate),
        additional_headers={"Authorization": ASSEMBLYAI_API_KEY},
    ) as aai_ws:

        async def vapi_to_assemblyai():
            leftover = b""
            try:
                while True:
                    message = await vapi_ws.receive()
                    if message["type"] == "websocket.disconnect":
                        break
                    data = message.get("bytes")
                    if not data:
                        continue
                    audio, leftover = customer_channel(leftover + data, channels)
                    if audio:
                        await aai_ws.send(audio)
            except WebSocketDisconnect:
                pass
            finally:
                await aai_ws.send(json.dumps({"type": "Terminate"}))

        async def assemblyai_to_vapi():
            async for raw in aai_ws:
                msg = json.loads(raw)
                text = msg.get("transcript", "").strip()
                if msg.get("type") != "Turn" or not text:
                    continue
                await vapi_ws.send_text(json.dumps({
                    "type": "transcriber-response",
                    "transcription": text,
                    "channel": "customer",
                    "transcriptType": "final" if msg.get("end_of_turn") else "partial",
                }))

        await asyncio.gather(vapi_to_assemblyai(), assemblyai_to_vapi())

Run it and expose it with a tunnel during development:

uvicorn custom_transcriber:app --host 0.0.0.0 --port 8001
ngrok http 8001

The repo version also checks an optional shared-secret header. For production, Vapi recommends authenticating custom transcriber endpoints with Custom Credentials (credentialId).

Point the assistant at it

Set the assistant's transcriber to custom-transcriber with your bridge's URL:

{
  "transcriber": {
    "provider": "custom-transcriber",
    "server": {
      "url": "wss://your-ngrok-url.ngrok.io/api/custom-transcriber"
    }
  }
}

The repo does this for you:

python create_assistant.py create --transcriber custom
python create_assistant.py call --assistant-id <id> --phone +1XXXXXXXXXX

Because the bridge owns the AssemblyAI connection, every streaming parameter is yours to set: keyterms, mode, Voice Focus, and on this model mode=manual. Keep turn-taking in Vapi's hands unless you have a reason not to; Vapi acts on the finals you send.

Option 2: use Vapi's built-in AssemblyAI provider

To start without a bridge, first add your AssemblyAI key to Vapi under Integrations in the Vapi dashboard. Then open Assistants, select your assistant, open the Transcriber card, set the Model menu's provider filter to AssemblyAI, and pick a model.

In the API, the transcriber block uses the fields from Vapi's AssemblyAI provider page:

{
  "transcriber": {
    "provider": "assembly-ai",
    "speechModel": "universal-3-6-pro",
    "mode": "balanced",
    "keytermsPrompt": ["Acme Insurance", "Gold plan", "deductible"],
    "agentContext": "Hi, thanks for calling Acme Insurance. Can I get your policy number?",
    "agentContextAutoUpdateEnabled": true
  }
}

Only provider and speechModel are required. agentContext seeds the first turn, so set it to your assistant's first message. With agentContextAutoUpdateEnabled, Vapi sends each assistant reply to AssemblyAI after every assistant turn, so the caller's answer is transcribed in the context of the question it answers. Leave languageCodes off to keep automatic detection and code switching, or pass codes such as ["en", "es"] to steer it.

When Vapi adds the 3.7 models to this provider, switching should be a change to speechModel. Check Vapi's provider page for the exact value before you change it.

python create_assistant.py create --transcriber builtin
Hear it on your own audio

Run a recorded call through the Playground and watch partials, finals and entity handling before you wire anything into Vapi.

Try playground

Keyterm prompting

Keyterms prime the model for vocabulary it would otherwise have to guess at: product names, plan tiers, internal system names, the ways your customers say your company name. You get up to 100 per session. In the built-in provider, they go in keytermsPrompt. In the bridge, they go in the KEYTERMS environment variable, which becomes keyterms_prompt on the AssemblyAI connection. Our keyterm prompting guide covers how to pick them.

The mistake teams make is loading the list with common English words. Spend the slots on the terms a general model has never seen in your context: SKUs, agent names, the branded plan your support line gets asked about forty times a day.

When to choose AssemblyAI over Deepgram in Vapi

Vapi lets you swap transcribers per assistant, which makes this an easy experiment. Here's how the numbers above read for the two most common choices:

What you're optimizing for AssemblyAI-STT-3.7-Realtime-Agent Deepgram Nova-3
Overall accuracy on voice-agent audio (normalized WER) 4.53% 8.64%
Account numbers, emails and other entities 13.2% entity error rate 25.1%
Phone numbers 2.03% 4.35%
Heavy background noise (WER) 5.32% 9.93%

All figures from AssemblyAI's voice-agent benchmark in the research post. Lower is better.

If your callers speak a language outside the 32 that STT-3.7-Realtime-Agent covers, run the comparison on your own recordings before you commit.

What this costs

AssemblyAI-STT-3.7-Realtime-Agent is $0.45/hr, billed on session duration, with keyterm prompting included. On the custom transcriber path, that's billed to your AssemblyAI account. Vapi's platform fee and your LLM and TTS providers bill separately; that's the trade-off of assembling a stack. Current rates for every add-on are on the pricing page.

When you'd skip the orchestrator

Worth saying plainly, because it's a real fork in the road.

Vapi is the right call when you want telephony, a visual builder, a workflow layer and a large integration catalog handed to you, and when the ability to swap any component later is worth managing several vendors now. That's a lot of teams; if you're still choosing a platform, see our comparison of Vapi vs Pipecat vs LiveKit.

The other shape is a loop you own: STT-3.7-Realtime-Agent for speech-to-text and the AssemblyAI Text-to-Speech API for the voice, with your LLM in between, on one bill and one set of logs. The Node.js voice agent tutorial builds that loop in a few hundred lines, and the Twilio phone agent tutorial puts it on a phone number. If you've hit the point where your stack's seams are what's slowing you down, that's the signal.

Wrapping up

Most voice agent debugging starts in the wrong place. Something went wrong on a call, and the first instinct is to open the system prompt, because the prompt is the part you wrote.

But the transcriber is the only component whose errors can't be recovered later. A weak LLM response can be fixed with a better prompt, and a robotic voice can be swapped in an afternoon. A misheard account number is gone: nothing downstream can reconstruct what the caller said, and every layer after it works from the wrong input. That's why an entity error rate of 13.2% against 25.1% shows up in your support tickets and not in your latency dashboards. Pick the transcriber first; in Vapi, almost everything else can be swapped later.

Resources

Start with the part you can't fix downstream

Get a free API key, run the bridge, and give your Vapi agent AssemblyAI-STT-3.7-Realtime-Agent at $0.45/hr with keyterms included.

Sign up free

Frequently Asked Questions (FAQs)

What is the best transcriber for a Vapi voice agent?

AssemblyAI-STT-3.7-Realtime-Agent has the lowest normalized word error rate (4.53%) and the lowest entity error rate (13.2%) of the 26 streaming models AssemblyAI ran on its English voice-agent benchmark, ahead of Soniox Realtime v6 and ElevenLabs Scribe v3 Live. Deepgram Nova-3 scored 8.64% and 25.1% on the same benchmark. For voice agents, the entity number is the one to read, because agents fail on account numbers and email addresses, not filler words.

Does Vapi support AssemblyAI-STT-3.7-Realtime-Agent?

Not in Vapi's built-in AssemblyAI provider yet. As of November 16, 2026, Vapi's docs and API list universal-3-6-pro and universal-3-5-pro for AssemblyAI. You can run STT-3.7-Realtime-Agent in Vapi today through Vapi's custom transcriber, with a small server that streams the caller's audio to AssemblyAI and returns transcripts to Vapi.

How do I use AssemblyAI in Vapi?

For the built-in provider, add your AssemblyAI key under Integrations in the Vapi dashboard, then pick AssemblyAI as the transcriber on your assistant, or set "provider": "assembly-ai" with a speechModel in the API. For STT-3.7-Realtime-Agent, set "provider": "custom-transcriber" and point server.url at a bridge that connects to assemblyai-stt-3-7-realtime-agent.

How does a Vapi custom transcriber work?

Vapi opens a WebSocket to your server, sends a start message with the sample rate and channel count, then streams 16-bit PCM with the caller on channel 0 and the assistant on channel 1. Your server returns transcriber-response messages marked partial or final for the customer channel. Vapi treats each partial as replacing the previous one until a final arrives.

AssemblyAI vs Deepgram in Vapi: which should I use?

On AssemblyAI's voice-agent benchmark, STT-3.7-Realtime-Agent has about half Deepgram Nova-3's word error rate (4.53% vs 8.64%) and about half its entity error rate (13.2% vs 25.1%). Vapi lets you swap transcribers per assistant, so run both on your own recorded calls before committing.

How much does a Vapi voice agent with AssemblyAI cost?

AssemblyAI-STT-3.7-Realtime-Agent is $0.45/hr, billed on session duration, with keyterm prompting included. Vapi's platform fee and your LLM and TTS providers bill separately. Current AssemblyAI rates are on the pricing page.