received user transcript - in which event ?
# ask-ai
n
received user transcript - in which event ?
t
Thanks for reaching out, Niv. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to share that the event you’re looking for in LiveKit when receiving a user transcript is called
user_input_transcribed
. This event fires every time a user’s speech gets transcribed, and it includes helpful details like the transcript itself, the language, and whether the transcription is final or still interim. If you have any questions or need a hand with working through this event or anything related, please don’t hesitate to reach out—I’m here to help! Sources: livekit-agents/livekit/agents/voice/agent_activity.py | Session recording and transcripts | LiveKit Docs | Events and error handling | LiveKit Docs
n
I put a print in the first row of the function but I getting different values from the DEBUG logger and mine 🎤 Transcript received type='user_input_transcribed' transcript='' is_final=False speaker_id=None language=None created_at=1759517854.3878257 🎤 Transcript received type='user_input_transcribed' transcript='Hei, bokertov.' is_final=True speaker_id=None language=None created_at=1759517854.6884449 2025-10-03 215735,278 - DEBUG livekit.agents - received user transcript {"user_transcript": "בוקר טוב.", "language": "he"}
t
Hi there! I understand the differences you're seeing between the DEBUG logger values and the
user_input_transcribed
event values can be a bit confusing. This usually happens because the DEBUG logs show interim (non-final) transcription results, which might include partial updates or even empty transcripts, while the
user_input_transcribed
event provides results that might not be final yet. To get the most accurate info, I'd recommend checking the
is_final
flag in the event. Final transcriptions usually happen when the system detects the end of the user's speech. Also, for a dependable session history, the
session.history
property is a great resource since it reflects committed chat items. If anything is unclear or you’d like a hand with this, please don’t hesitate to reach out—I’m here to help! Sources: Session recording and transcripts | LiveKit Docs | livekit-plugins/livekit-plugins-deepgram/livekit/plugins/deepgram/stt_v2.py | Events and error handling | LiveKit Docs | plugins/google/src/beta/realtime/realtime_api.ts