Add TurnMetricsData and e2e processing time for KrispVivaTurn

Introduce a generic TurnMetricsData class for turn detection metrics,
replacing the service-specific SmartTurnMetricsData (now deprecated).
Add end-to-end processing time measurement to KrispVivaTurn, tracking
the interval from VAD speech-to-silence transition to model threshold
crossing. Consume metrics in the strategy _handle_input_audio path
so they are pushed immediately when fresh.
This commit is contained in:
Mark Backman
2026-02-24 17:42:18 -05:00
parent 73ee4da7d4
commit 0ca8c850fb
10 changed files with 92 additions and 48 deletions

View File

@@ -0,0 +1 @@
- Deprecated `SmartTurnMetricsData` in favor of `TurnMetricsData`. `BaseSmartTurn` now emits `TurnMetricsData` directly.