Examples
Structured input with DTMF and speech
This menu accepts either a key press or a spoken command.inputType="dtmf speech" listens for both, and the input detected first is relayed to the action URL. The hints attribute biases the recognizer toward the exact phrases you expect, and speechModel="command_and_search" is tuned for short commands like these.
InputType to see what was detected, then branch on Digits (for dtmf) or Speech (for speech):
Action URL parameters
Conversational AI with speech input
Real-time transcription of fuzzy inputs such as complete sentences, on the other hand, helps to build conversational AI-driven experiences. HereinputType="speech" collects free-form speech, and interimSpeechResultsCallback streams partial transcripts to your server as the caller talks - useful for low-latency AI agents.