promptAudio
Play an audio file as the prompt, then collect DTMF or speech input. A typed
convenience over playAndCollect().
Parameters
url
URL of the audio file to play as the prompt.
collect
Input collection configuration: digits, speech, initial_timeout, and
the other fields accepted by playAndCollect(). Field
names are the snake_case wire names; the object is sent as-is.
options
Playback options.
options.volume
Volume adjustment in dB, from -40 to 40.
options.onCompleted
Callback invoked when the operation reaches a terminal state.
Returns
Promise<CollectAction> — An action handle with stop(), pause(), resume(), volume(), startInputTimers(), and wait() methods.