ancient-judge-59849
02/26/2025, 6:08 PMgray-monkey-83525
02/26/2025, 6:08 PMVoicePipelineAgent
might be related to how event listeners are being registered. According to LiveKit documentation, if event listeners are registered multiple times, they can trigger multiple callbacks for the same event. This can happen if the event listeners are not properly managed or if the agent is being initialized multiple times without clearing previous listeners.
To address this, you might want to ensure that event listeners are registered only once. You can do this by checking if the listeners are already registered before adding them again. Additionally, make sure that the agent is not being started multiple times inadvertently, which could also lead to duplicate event handling.
Would you like more detailed guidance on how to manage event listeners effectively?
Sources:
- LiveKit documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.