AnsweringMachineDetector
Answering machine or voicemail detector class.
Constructors
Methods
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(): Promise<Events.DetectionComplete | Events.DetectionError>
Starts answering machine or voicemail recognition session.
Returns
type:
Promise<Events.DetectionComplete | Events.DetectionError>
id(): string
Returns the Answering machine detector's id.
Returns
type:
string
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