Is it correct that conversational latency calculat...
# agents
c
Is it correct that conversational latency calculation is not implemented in livekit for the OpenAI Realtime API with server side VAD? I notice
Copy code
@session.on("metrics_collected")
    def _on_metrics_collected(ev: MetricsCollectedEvent):
        metrics.log_metrics(ev.metrics)
Seems to only report items like
Copy code
{
        "type": "realtime_model_metrics",
        "label": "livekit.plugins.openai.realtime.realtime_model.RealtimeModel",
        "request_id": "resp_CBTrnKpEkk4TknpdgN3Ou",
        "timestamp": 1756852451.3662906,
        "duration": 3.058795928955078,
        "ttft": -1.0,
        "cancelled": false,
        "input_tokens": 3802,
        "output_tokens": 266,
        "total_tokens": 4068,
        "tokens_per_second": 86.96232314225318,
        "input_token_details": {
            "audio_tokens": 2509,
            "text_tokens": 1293,
            "image_tokens": 0,
            "cached_tokens": 3712,
            "cached_tokens_details": {
                "audio_tokens": 2432,
                "text_tokens": 1280,
                "image_tokens": 0
            }
        },
        "output_token_details": {
            "text_tokens": 63,
            "audio_tokens": 203,
            "image_tokens": 0
        }
    },
i.e. no out of the box way to calculate time from end of user utterance to time of realtime API generation start