echoing-lamp-18687
12/03/2025, 12:29 PMtall-airline-16756
12/03/2025, 12:29 PMtall-airline-16756
12/03/2025, 12:29 PMSTTMetrics event. Do not pick only the last record — aggregate them.
What to do:
• Sum audio_duration across all STTMetrics to get total transcribed seconds.
• Sum character/word counts (or whichever counters your pipeline emits) to get total transcription volume.
• Count records if you need number of speech turns.
• Use speech_id to group segments belonging to the same user turn when needed.
If you want, tell me which fields your events include (example: audio_duration, character count, speech_id) and I’ll suggest a specific aggregation snippet for your stack (Python/JS/etc.).
Sources: Observability data hooks | LiveKit docsechoing-lamp-18687
12/03/2025, 12:32 PMtall-airline-16756
12/03/2025, 12:32 PMaudio_duration is reported in seconds.
Why it can be larger than the 1–2s you spoke:
• VAD buffering and warm-up can include a bit of pre-roll before speech and trailing silence after the turn is closed.
• Streaming STT can emit multiple incremental/overlapping segments for the same utterance (you have two ~5s entries), so individual records may overlap or reflect total frames sent to the STT engine rather than the audible speech length alone.
What to do:
• Aggregate audio_duration across stt records to measure total audio processed.
• If you want "spoken-only" time, consider subtracting estimated silence by post-processing audio or grouping by speech_id and deduplicating overlapping segments before summing.
If you want, tell me which stack (Python/JS) you use and I’ll provide a short snippet to group/deduplicate and sum audio_duration.
Sources: Observability data hooks | LiveKit docs