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
- The hooks cannot
RESPOND. With noHANDOFF, the call ends after the hook. See How to define fallback behavior for voice failures. _metavalues are text, numbers, or true and false. Use stable, low-cardinality values. Never write the caller’s words. See How to debug routing decisions in traces.- The agent has no tools and no companion resources.
- Open Sessions and select the session.
- Open Voice Metrics. Read Call Overview, Call Termination, and Call Activity.
- Open the trace. Filter on
voice_. Readvoice_session_start,voice_config_resolved, then eachvoice_turn. - Check the session’s custom dimensions for
voice_exitto 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
_metaand 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.