Skip to main content
Deepgram's Docs

Search documentation

Type to search this documentation.

On this pageOverview

Latency Report

Voice Agent

The LatencyReport message is the richest latency signal the Agent API emits. The server sends it after each turn with a breakdown of latency across the full STT → LLM → TTS pipeline.

LatencyReport lets you attribute latency to the right stage — for example, separating LLM time-to-first-token from TTS time, and isolating tool-call and thinking overhead. It is fully supported and sent automatically; no configuration flag is required to receive it.

All fields are floats in seconds, and each is optional (omitted when not applicable to that turn), so log defensively rather than assuming every field is present on every report.

Field Type What It Measures
type string Must be "LatencyReport".
stt_latency number Speech-to-text: audio received to transcript produced.
ttt_token_latency number Time to first token of any type (text, tool call, or thinking).
ttt_text_latency number Time to first text token from the LLM.
ttt_tool_latency number Time to first tool-call token from the LLM.
ttt_thinking_latency number Time to first thinking token from the LLM.
tts_latency number Text-to-speech: first text token to first audio byte.
total_latency number End-to-end: user utterance end to first audio byte.

JSON

JSON
{
  "type": "LatencyReport",
  "stt_latency": 0.12,
  "ttt_token_latency": 0.34,
  "ttt_text_latency": 0.36,
  "ttt_tool_latency": 0.41,
  "ttt_thinking_latency": 0.29,
  "tts_latency": 0.18,
  "total_latency": 0.64
}

Capture LatencyReport the same way as every other frame to chart and troubleshoot latency:

  • Attribute end-to-end latency to the STT, LLM, or TTS stage.
  • Separate LLM time-to-first-token from TTS time.
  • Isolate tool-call and thinking overhead from text generation.

For an end-to-end logging pattern that persists every WebSocket frame, see Session Observability.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu