victorious-midnight-79553
11/19/2025, 7:40 AMtall-airline-16756
11/20/2025, 12:39 PMtranscriptionDelay = max(lastFinalTranscriptTime - lastSpeakingTime, 0)
Here’s what each part means:
• lastSpeakingTime: This is the moment you stop talking, detected using Voice Activity Detection (VAD).
• lastFinalTranscriptTime: This is when the final transcription result arrives from the Speech-to-Text (STT) system.
You’ll find this value included in the onEndOfTurn hook inside the EndOfTurnInfo object. It helps show the delay between when you finish speaking and when the transcription is ready for you. If you have any questions about this, I’m here to help! Sources: agents/src/voice/audio_recognition.ts | livekit-agents/livekit/agents/telemetry/trace_types.py | Operational Best Practices | livekit/livekit_composite | DeepWiki | Knowledge Base Content | livekit/livekit_composite | DeepWiki