Phones and routing
Can a voice agent accept keypad inputs as well as speech?
Yes, if the phone route supports DTMF events and the application listens for them. Treat keypad input as a separate channel from speech recognition instead of relying on the model to hear button tones.
Verify direction and transport
Inspect both receive and send requirements. One provider’s bidirectional media interface supports caller-to-service DTMF only; it does not follow that the agent can emit tones through the same API.
Design timing explicitly
For menus, configure digit count, timeout and fallback for no input. If speech and digits are both accepted, test what happens when a caller starts speaking and then presses a key.
Avoid unnecessary collected digits
Use keypad capture only for the intended workflow, and check whether recordings or transcripts should include the associated segment. Do not use arbitrary digits as identity proof by default.
Sources and scope
Sources checked: .
- Twilio media stream messages
Direction and schema of Media Streams DTMF events.
- Twilio Gather reference
Speech/DTMF collection options and input flow.