cool-camera-83057
06/26/2025, 1:32 PMself._event_ch.send_nowait(
agents.vad.VADEvent(
type=agents.vad.VADEventType.END_OF_SPEECH,
samples_index=pub_current_sample,
timestamp=pub_timestamp,
silence_duration=pub_silence_duration,
speech_duration=pub_speech_duration,
frames=[_copy_speech_buffer()],
speaking=False,
)
)
is triggeredtall-airline-16756
06/26/2025, 1:32 PMtall-airline-16756
06/26/2025, 1:32 PMself._event_ch.send_nowait
is called? Additionally, are you working within a specific framework or environment?cool-camera-83057
06/26/2025, 1:33 PMtall-airline-16756
06/26/2025, 1:33 PM_on_vad_event
that catches the END_OF_SPEECH event. Check out this code snippet:
elif ev.type == vad.VADEventType.END_OF_SPEECH:
self._hooks.on_end_of_speech(ev)
The cool part is that you can customize the on_end_of_speech
hook to do whatever you need - like adding a print statement or logging the event. It's totally flexible! Want to track when someone stops talking? Just add your preferred logging or print logic right in that hook. Simple, right? 😊 Sources: GitHub::livekit::agents | livekit-agents/livekit/agents/stt/stream_adapter....cool-camera-83057
06/26/2025, 1:33 PMtall-airline-16756
06/26/2025, 1:33 PM