AnsweringMachineDetector
Answering machine or voicemail detector class.
Methods
addEventListener
addEventListener(event: , callback: Function
): void
Adds a handler for the specified AMD.Events. Use only functions as handlers; anything except a function leads to an error and scenario termination when a handler is called.
Parameters
event:
Event class (e.g., AMD.Events.DetectionComplete)
callback:
Function
Handler function. A single parameter is passed - object with event information
Returns
type:
void
detect
detect(): Promise<Events>
Starts answering machine or voicemail recognition session.
Returns
type:
Promise<Events>
removeEventListener
removeEventListener(event: , callback: Function
): void
Removes a handler for the specified AMD.Events event.
Parameters
event:
Event class (i.e., AMD.Events.DetectionComplete)
callback:
Function
OptionalOptional. Handler function. If not specified, all handler functions are removed
Returns
type:
void