aloof-scooter-47164
09/08/2025, 4:49 AMtall-airline-16756
09/08/2025, 4:49 AMtall-airline-16756
09/08/2025, 4:49 AMtall-airline-16756
09/08/2025, 4:50 AMParticipantMetadataChanged event that gets sent to all connected clients. This happens through server-side API calls and is handy when you want to share state changes with multiple participants at once.
That said, there aren’t any official benchmarks comparing their speed or reliability just yet. If you could tell me a bit more about your use case—like how often you expect updates or what kind of state info you’re working with—I’d be happy to help you figure out the best fit!
Sources: livekit-rtc/livekit/rtc/participant.py | src/room/participant/LocalParticipant.ts | Remote method calls (RPC) | LiveKit Docs | Managing participants | LiveKit Docs | rpc/io.pb.goaloof-scooter-47164
09/08/2025, 4:56 AMtall-airline-16756
09/08/2025, 4:57 AMIDLE, SPEAKING, LISTENING, and THINKING, LiveKit suggests going with RPC calls instead of metadata updates. Metadata updates aren’t the best fit for rapid changes (more than once every few seconds) because they can slow things down on the server side.
RPC calls are actually built for real-time state syncing and work really well in situations like these:
• Letting the agent know when a user switches states (like moving from LISTENING to THINKING).
• Managing interruptions smoothly (for example, changing from SPEAKING to LISTENING).
• Coordinating when playback finishes or times out.
If you want a hand with setting up RPC calls for your specific needs, just give me a shout—I’m here to help!
Sources: Participant attributes and metadata | LiveKit Docs | Bringing AI avatars to voice agents | Bringing AI avatars to voice agents | Web and mobile frontends | LiveKit Docs | Events and error handling | LiveKit Docs