Skip to main content
Back to how-to guides Use this pattern when a live voice call sounds wrong, feels slow, or ends in a way you did not design. Start with the numbers in Voice Metrics. Then read the voice_* trace events for the cause. Each symptom maps to one or two events. “Realtime” here means live calls. This article covers both pipeline voice (STT, agent, TTS through KoreVG) and realtime speech-to-speech voice. It says where they differ.

Concept

Three layers of evidence explain a call. Check them in this order. For trends across calls, use the Voice Analytics page. It shows Total Calls, Avg MOS, ASR Quality, E2E Latency, Barge-In Rate, DTMF Fallback, and an hourly breakdown.

What each mode records

Voice events record timings, counts, and identifiers. Filler and SSML events keep lengths and hashes, not the text. Secure input values never reach the trace. A discarded low-confidence transcript keeps a preview of at most 160 characters, except during secure input.

Minimal working example

Tag how each call ends, so you can filter sessions by outcome. The agent sets a custom _meta dimension on three exits: completed, silence, and a hold that passed its limit. An error also sets one. agents/store-hours-voice.agent.abl
Read one call:
  1. Open Sessions and select the session.
  2. Open Voice Metrics. Read Call Overview, Call Termination, and Call Activity.
  3. Open the trace. Filter on voice_. Read voice_session_start, voice_config_resolved, then each voice_turn.
  4. Check the session’s custom dimensions for voice_exit to confirm how the call ended.

How it works

Voice Metrics panels

When Studio shows “Voice metrics are based on partial evidence”, some events are missing or too large to show. Totals can change. The Voice quality panel in the investigation view reports how many events it read. It also offers Play from this turn and Show in trace for each turn.

Trace events by area

A speech provider error carries a catalog errorCode: SPEECH_PROVIDER_INVALID_API_KEY, SPEECH_PROVIDER_CREDENTIALS_REQUIRED, SPEECH_PROVIDER_AUTH_FAILED, SPEECH_PROVIDER_ACCESS_DENIED, SPEECH_PROVIDER_UNSUPPORTED_VOICE, SPEECH_PROVIDER_UNSUPPORTED_LANGUAGE, SPEECH_PROVIDER_RATE_LIMITED, SPEECH_PROVIDER_UNAVAILABLE, or SPEECH_PROVIDER_REJECTED. The event also carries the configured provider and model, and a numeric status when one exists. It never carries the provider’s own text.

Compile diagnostics

Voice diagnostics block publish (errors) or advise (warnings). The common ones: The full list is in Voice diagnostics.

Verification

Run these calls once for each agent before go-live. After each, open the session and check the expected evidence. For a realtime call, check Speech (realtime) and voice_turn_quality. Per-stage timings are not recorded.

Production readiness checklist

  • Every agent compiles with no voice error. Review each voice warning.
  • You tested one call per row in Verification, on each voice channel and mode you ship.
  • Each fallback path from How to define fallback behavior for voice failures produces the event you expect.
  • A named person owns the Voice Analytics page and reviews E2E Latency, ASR Quality, and Barge-In Rate on a schedule.
  • You tag exits with _meta and can filter sessions by exit.
  • Support staff know where SIP Ladder and Call Termination are, and who can reveal the ladder.
  • You know your retention scope. Studio states when voice evidence is unavailable for an access or retention scope.

Common mistakes

Troubleshooting