> In the current `livekit-agents` Python SDK, w...
# ask-ai
l
In the current
livekit-agents
Python SDK, what is the correct way to listen for voice activity detection (VAD) events such as
vad_start
or
vad_end
during an
AgentSession
?
Context: In older examples, we used:
Copy code
session.input.audio.on("vad_start", handler)
But in the current version: •
session.input.audio
is an
_AudioInput
object with no
.on()
method
, •
session.on("input_vad_start", handler)
might work — but this is undocumented. can you help me identify the correct way?
t
Thanks for reaching out, Computer. 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!