With this callback: @session.on("user_state_chang...
# ask-ai
f
With this callback: @session.on("user_state_changed") def _user_state_changed(ev: UserStateChangedEvent): logger.info(f"User state changed") if ev.new_state == "away": logger.info(f"User {ev.participant.identity} is away, stopping audio input.") how do i get the identity of the user?
t
Thanks for reaching out, muse. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!