Hi Livekit team,
When using the AWS Nova Sonic realtime model (amazon.nova-2-sonic-v1:0) via the livekit-plugins-aws realtime integration, I’m seeing two problems with the RealtimeModel metrics events:
- Metrics are emitted many times for a single response. For one agent turn I get a stream of separate
RealtimeModel metricslog lines , each reporting a small chunk (e.g.output_tokens: 20) instead of a single aggregated metrics event at the end of the response. ttftis always0.0. Time-to-first-token is never populated — every metrics event reports"ttft": 0.0regardless of actual latency
Environment
- Model:
amazon.nova-2-sonic-v1:0 - LiveKit Agents Version: 1.5.17
- Provider: Amazon (AWS Bedrock)
Sample logs
{“message”: “RealtimeModel metrics”, “model_name”: “amazon.nova-2-sonic-v1:0”, “model_provider”: “Amazon”, “ttft”: 0.0, “input_tokens”: 0, “output_tokens”: 20, “output_text_tokens”: 2, “output_audio_tokens”: 18, “total_tokens”: 20, “timestamp”: “2026-07-17T06:21:37.570279+00:00”}
{“message”: “RealtimeModel metrics”, “model_name”: “amazon.nova-2-sonic-v1:0”, “model_provider”: “Amazon”, “ttft”: 0.0, “input_tokens”: 0, “output_tokens”: 20, “output_text_tokens”: 0, “output_audio_tokens”: 20, “total_tokens”: 20, “timestamp”: “2026-07-17T06:21:37.993354+00:00”}
{“message”: “RealtimeModel metrics”, “model_name”: “amazon.nova-2-sonic-v1:0”, “model_provider”: “Amazon”, “ttft”: 0.0, “input_tokens”: 0, “output_tokens”: 20, “output_text_tokens”: 0, “output_audio_tokens”: 20, “total_tokens”: 20, “timestamp”: “2026-07-17T06:21:38.492814+00:00”}
… (repeats many times for a single turn) …
Questions
-
Is the per-chunk emission expected for the Nova Sonic realtime model, or should these be aggregated?
-
Is
ttftmeasurement supported for AWS realtime models, or is it a known gap in the AWS plugin? -
Are there any recommended configuration changes, timeout settings, or code adjustments required when using this model with LiveKit Agents?
-
Have there been any fixes or improvements in versions newer than 1.5.17 related to realtime AWS models?
Any guidance would be greatly appreciated.