Merge pull request #3776 from pipecat-ai/aleix/stt-ttfb-metrics-refactor

Refactor STT TTFB metrics to use base class start/stop pattern
This commit is contained in:
Aleix Conchillo Flaqué
2026-02-19 11:46:46 -08:00
committed by GitHub
5 changed files with 80 additions and 79 deletions

View File

@@ -0,0 +1 @@
- Added `start_time` and `end_time` parameters to `start_ttfb_metrics()`, `stop_ttfb_metrics()`, `start_processing_metrics()`, and `stop_processing_metrics()` in `FrameProcessor` and `FrameProcessorMetrics`, allowing custom timestamps for metrics measurement. `STTService` now uses these instead of custom TTFB tracking.