What the canary measures

MetricHow it is measuredWhat it tells you
Time to first audioFrom the last non-silent frame of the canary's utterance to the first decoded audio frame from the agentThe silence the caller actually hears, per region
Turn latency p95Across all turns of the scenario, per run and over timeRegression after a model, prompt or SDK change
Barge-in stop timeThe canary speaks while the agent is talking; time until the agent's audio stopsEndpointing and interruption handling
Scenario resultEach turn's reply checked against expectations: contains, regex, DTMF, transfer, intent via rubricWhether the flow still works, not only whether it answers
Task completionReached the scenario's end state (confirmation, hand-off, hang-up) within the turn budgetThe outcome a product owner cares about
Post-dial delayFrom INVITE or dial to the first ringing or answerCarrier and trunk health on the phone leg
Media legRTT, jitter, loss, concealment and an E-model MOS from getStats() or RTCPWhether a slow reply is the network or the agent
Pipeline stagesEnd of utterance, time to first token, time to first byte of TTS, when your framework posts themWhich stage of the agent moved

Scenarios, not pings

A scenario is a scripted dialogue with expectations per turn. Deterministic checks run first; a rubric-based judge is optional, and its output is stored with the run so that a disputed verdict can be read, not guessed.

  - id: support-change-email
    type: voice_agent
    regions: [us-east, eu-west]
    interval: 300s
    target: { kind: phone, number: "+1xxxxxxxxxx" }
    scenario:
      turns:
        - say: "Hi, I need to change the email on my account."
          expect: { contains_any: ["verify", "confirm", "account number"] }
          expect_reply_within_ms: 2500
        - say: "It's 4 4 8 1 2 0."
          expect: { intent: "asks_for_new_email", judge: rubric }
        - say: "Actually, never mind."
          interrupt_after_ms: 800
          expect_agent_stops_within_ms: 600
      end_state: { any_of: [hangup_by_agent, transfer_offered] }
    thresholds:
      time_to_first_audio_ms: { warn: 1500, fail: 3000 }
      turn_latency_p95_ms:    { warn: 2000, fail: 4000 }
      scenario_result:        { expect: pass }

The same file format describes a WebRTC room or a TURN check, so a voice agent and the infrastructure under it live in one configuration. The full reference is in the documentation.

Cascaded pipelines and speech-to-speech models

A cascaded agent (speech-to-text, an LLM, text-to-speech) exposes stages, and a slow reply can be pinned on one of them. A speech-to-speech model takes audio in and returns audio out; there is no transcript in the middle and no stage boundary to time. From the outside both look the same, which is why the canary measures at the audio: the end of its own utterance, the first decoded frame of the reply, the moment the agent's audio stops after an interruption. For a cascaded agent that posts stage timings, the attribution names the stage. For a speech-to-speech agent it separates the network, the session setup and the model's response time, which is as far as the split goes when the model is one box.

Scenario verdicts do not depend on the agent's own transcript either. The canary transcribes what it heard, so a reply that the agent logged correctly but synthesised as garbled audio fails the turn.

Before you switch models

New realtime models ship every few weeks, and a benchmark score says little about your flows on your telephony. A comparison check runs one scenario against two targets, the current agent and a candidate deployment, from the same regions in the same minute, and stores the pair as one comparison.

  - id: support-change-email-candidate
    type: voice_agent
    compare_with: support-change-email     # same scenario, same regions, same schedule
    target: { kind: webrtc, url: "https://staging.example.com/agent", token: ${{ secrets.STAGING_TOKEN }} }

The diff lists time to first audio, turn latency p95, barge-in stop time and the scenario verdict per turn for both sides. The same mechanism compares two releases of one agent: every run carries the release it was triggered by, and a failing run is diffed against the last passing run of the previous release.

Caller profiles

A scenario spoken in a studio voice tests the best case. A caller profile changes how the canary sounds without changing what it says: clean speech, street noise, speakerphone with room echo, a second voice in the background, narrowband telephone audio. Run the critical flow with two or three profiles and the alert tells you that the agent still completes the task for a caller on a clean line and stopped completing it for a caller on a speakerphone.

    scenario:
      caller: [clean, street_noise, speakerphone]   # one run per profile

Outbound agents

For an agent that places calls, the canary is the callee. You add a canary number to a test campaign; the canary answers, plays the callee's side of the scenario and reports what a person picking up would experience: the caller ID and name displayed, the STIR/SHAKEN attestation level received with the call where the terminating carrier passes it, the delay between answer and the agent's first word, and what the agent does when it reaches voicemail instead of a person.

Disclosure and consent as expectations

If your policy, your customer's contract or the law where you operate requires the agent to say that it is an AI, to announce recording or to offer a human, write it as a turn expectation. It then runs every few minutes against production and fails loudly the day a prompt edit removes the sentence.

        - say: "Hello?"
          expect:
            all_of:
              - { intent: "discloses_it_is_an_ai", judge: rubric }
              - { contains_any: ["recorded", "recording"] }

Simulation, call analytics and canaries

Three kinds of tool watch a voice agent, and they answer different questions.

ApproachWhat it runs onQuestion it answersBlind spot
Pre-release simulationHundreds of synthetic callers with varied personas against a buildIs this build good enough to ship?Everything that changes after the build: carrier, upstream model, region
Call analyticsRecordings and transcripts of real production callsWhat happened on the calls we had?Needs traffic; silent at 3 a.m., on a new number, and on a path no caller took yet
Canary callsA handful of critical flows, every few minutes, against productionIs the shipped agent working right now, from each region?Covers the flows you scripted, not the long tail of real conversations

RTCanary is the third one. A flow that already exists as a test case in CI can be reused as a canary scenario, so the set of flows you watch in production is the set you already decided matters.

Targets

Any agent reachable by a phone number, a WebRTC room or a realtime session. In practice that covers agents built on LiveKit Agents, Pipecat, Vapi, Retell, Bland, ElevenAgents, speech-to-speech models reached directly (the OpenAI Realtime API, Gemini Live, Eleven Realtime, Amazon Nova Sonic), and in-house pipelines behind Twilio, Telnyx or a SIP trunk. The canary identifies itself with a caller ID and a metadata header you choose, so its calls can be excluded from your analytics and billed to a test account.

Alerts your on-call agent can act on

An alert is a structured document, not a sentence. It carries the run, the failing turn, the attribution and the links to the trace and the recording when recording is enabled for the check.

{
  "check_id": "support-change-email",
  "region": "us-east",
  "result": "fail",
  "failed_turn": 2,
  "attribution": {
    "layer": "agent_pipeline",
    "stage": "time_to_first_token",
    "evidence": "ttft p95 2.9 s (baseline 0.8 s); media rtt 41 ms, loss 0 %"
  },
  "scenario": { "expected": "asks_for_new_email", "judge": "rubric", "verdict": "fail", "reason": "agent asked for the account number a second time" },
  "trace_url": "https://app.rtcanary.com/runs/…"
}

Through the MCP server, Claude Code, Cursor or your own agent can list checks, fetch this run, read the per-second trace, compare it with the last passing run and mute the check for the duration of a rollback. The same calls are available as a REST API; the reference is in the documentation.

Questions

Does the canary need access to the agent's internals?

No. It measures from the outside, as a caller. If your framework posts per-turn stage metrics (end of utterance, time to first token, TTS start) to the run's webhook, the attribution splits agent time from network time; without them it still reports time to first audio and the media leg.

How is "the agent answered correctly" judged?

Deterministic checks first: contains, regex, a DTMF tone, a transfer event, a hang-up. A rubric judge is enabled per turn when you need an intent check; you write the rubric, the judge's verdict and reasoning are stored with the run, and a judge failure is reported separately from a latency failure so the two are never confused.

Will canary calls pollute my analytics?

The canary uses a caller ID and a metadata header you configure. Exclude them in your analytics and route them to a test account on your agent platform; most platforms support both by caller ID.

Does it work with a speech-to-speech model that has no transcript?

Yes. Timing is measured on the audio and the canary transcribes the reply itself for the turn expectations, so nothing depends on the agent exposing text.

What does it cost?

A scenario is one check per region, the same as a room or TURN check. The phone leg is included. See pricing.