UserBotLatencyLogObserver

class pipecat.observers.loggers.user_bot_latency_log_observer.UserBotLatencyLogObserver[source]

Bases: BaseObserver

Observer that logs the latency between when the user stops speaking and when the bot starts speaking.

This helps measure how quickly the AI services respond.

async on_push_frame(data)[source]

Handle the event when a frame is pushed from one processor to another.

This method should be implemented by subclasses to define specific behavior (e.g., logging, monitoring, debugging) when a frame is transferred through the pipeline.

Parameters:

data (FramePushed) – The event data containing details about the frame transfer.