Discussions

Ask a Question
Back to all

How to capture transcription events with LiveAvatar + LiveKit for chat logging?

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:

  1. What are the correct events to listen for with LiveAvatar + LiveKit to capture:

    • User speech text
    • Avatar response text
  2. Should I be using LiveKit's native transcription events instead?

  3. Is there sample code or documentation for capturing these events specifically with LiveAvatar?

Any guidance would be really appreciated!

Thanks