fresh-painting-88343
08/17/2025, 12:58 PMtall-airline-16756
08/17/2025, 12:58 PMtall-airline-16756
08/17/2025, 12:59 PMlk.agent.state, and it can be things like initializing, listening, thinking, or speaking. When you see speaking, it means the agent is currently replying.
Here’s a quick example:
String agentState = participant.attributes['lk.agent.state'];
if (agentState == 'speaking') {
// Agent is currently speaking
} Sources: AI voice agents | LiveKit Docs