Discussions
How to capture transcription events with LiveAvatar + LiveKit for chat logging?
4 months ago by Louae Ismail
Hi HeyGen team,
I'm building a web application with LiveAvatar and need to log all conversation turns (both user speech and avatar responses) to Supabase for analytics.
My Setup:
- LiveAvatar API with LiveKit JS client
- WordPress with server-side proxy for session token generation
- Successfully creating sessions and connecting to LiveKit rooms
- Supabase ready to receive logs
The Issue:
I contacted support and they mentioned using AVATAR_TALKING_MESSAGE and USER_TALKING_MESSAGE events from StreamingEvents, but then clarified those are for the Streaming Avatar SDK (@heygen/streaming-avatar), not LiveAvatar with LiveKit.
My Questions:
-
What are the correct events to listen for with LiveAvatar + LiveKit to capture:
- User speech text
- Avatar response text
-
Should I be using LiveKit's native transcription events instead?
-
Is there sample code or documentation for capturing these events specifically with LiveAvatar?
Any guidance would be really appreciated!
Thanks