I'm happy to help you implement a LiveKit agent that waits for user input via DTMF on a specific turn. You have a couple of great options to consider:
•
Using VoicePipelineAgent: This method uses the VoicePipelineAgent along with function tools to manage DTMF input and turn-taking. It also includes a handy cooldown mechanism to avoid rapid DTMF presses and lets you publish DTMF codes to the room smoothly.
•
Using AgentSession: This gives you more detailed control over turns through the AgentSession API. It’s perfect if you want to manually detect turns and precisely decide when the agent should wait for DTMF input.
Both approaches involve setting up event handlers to catch DTMF signals and adding logic to handle user input effectively. If you'd like, I’d be glad to provide detailed code examples or walk you through the process step-by-step—just let me know!
Sources:
ivr-nagivator/frontend/src/App.tsx |
complex-agents/ivr-agent/ivr-agent-frontend/src/App.tsx |
README.md |
Turn detection and interruptions | LiveKit Docs