Collect DTMF digit or speech input without playing a prompt. Use this when you
want to listen for input silently or after a prompt has already been played
separately. For collecting input with a prompt, use
playAndCollect().
This method emits calling.call.collect events. See Call Events for payload details.
DTMF digit collection settings.
Maximum number of digits to collect.
Seconds to wait between digits before completing.
Characters that terminate digit collection (e.g., "#").
Speech recognition settings.
Seconds of silence to wait before finalizing speech input.
Maximum seconds to listen for speech.
Speech recognition language code (e.g., "en-US").
Words or phrases to boost recognition accuracy.
Seconds to wait for the first input before ending with no_input.
Enable partial speech recognition results.
Keep collecting after each result instead of stopping.
Send an event when input is first detected.
Start input timers immediately. If false, call
action.startInputTimers() to start them manually.
Custom control ID. Auto-generated if not provided.
Callback invoked when collection completes.
Promise<StandaloneCollectAction> — An action
handle with stop(), startInputTimers(), and wait() methods.