detectAnsweringMachine
Detect whether a human or an answering machine picked up. A typed convenience
over detect() with the machine detector.
Parameters
options
Detector options. Each maps to the matching snake_case param of the
detect() command’s machine detector type.
options.initialTimeout
Seconds to wait for initial voice before deciding.
options.endSilenceTimeout
Seconds of silence that end the greeting.
options.machineVoiceThreshold
Seconds of continuous voice that indicate a machine.
options.machineWordsThreshold
Word count that indicates a machine.
options.detectInterruptions
Report interruptions during the greeting.
options.detectMessageEnd
Keep detecting until the machine’s greeting ends, so you can leave a message.
options.timeout
Maximum seconds to run the detector before stopping.
options.onCompleted
Callback invoked when the operation reaches a terminal state.
Returns
Promise<DetectAction> — An action handle with stop() and wait() methods. It resolves on the first detection result.