crooked-dawn-90821
09/24/2025, 5:23 PMtall-airline-16756
09/24/2025, 5:23 PMtall-airline-16756
09/24/2025, 5:24 PMimport asyncio
async def do_job():
await asyncio.sleep(2) # Waits for 2 seconds
This can be really handy when you want to add a little delay in your custom agent’s workflow.
• Using LiveKit's `min_consecutive_speech_delay`: This setting helps you ensure there’s a minimum pause between speech segments. For example:
session = AgentSession(
min_consecutive_speech_delay=2.0 # 2-second minimum delay
)
If anything’s unclear or if you'd like me to walk you through it more, just let me know—I’m here to help!
Sources: Text and transcriptions | LiveKit Docs | tests/fake_tts.py | How does end-of-utterance detection work in conversations? | Silero VAD plugin | LiveKit Docscrooked-dawn-90821
09/24/2025, 7:04 PMtall-airline-16756
09/24/2025, 7:05 PM