Files
pipecat/changelog
Mark Backman 18155b6a63 Add latency breakdown to UserBotLatencyObserver
Add per-service latency breakdown metrics alongside existing user-to-bot
latency measurement. When enable_metrics=True, the observer now emits an
on_latency_breakdown event with TTFB, text aggregation, and user turn
duration metrics collected between VADUserStoppedSpeakingFrame and
BotStartedSpeakingFrame.

- Add LatencyBreakdown dataclass with ttfb, text_aggregation,
  user_turn_secs fields
- Accumulate MetricsFrame data during user→bot cycles
- Reset accumulators on InterruptionFrame to discard stale metrics
- Measure user_turn_secs from actual user silence (VAD timestamp -
  stop_secs) to turn release (UserStoppedSpeakingFrame)
- Filter zero-value TTFB entries from startup metric resets
- Add frame deduplication using bounded deque + set pattern
- Update example 29 with latency breakdown display
2026-03-02 16:11:43 -05:00
..
2026-02-16 11:35:45 -07:00
2026-02-21 17:35:08 +05:30
2026-02-21 18:33:29 +05:30
2026-02-25 14:12:39 -05:00
2026-02-26 14:00:34 -08:00
2026-03-02 13:24:00 +00:00
2026-02-27 10:25:48 -05:00
2026-02-27 14:52:37 -05:00
2026-03-02 13:10:09 -05:00
2026-03-02 16:11:42 -05:00
2026-02-28 17:28:44 -08:00
2026-03-02 18:09:51 +05:30