Rate this page:

AnsweringMachineDetector

Answering machine or voicemail detector class.

Methods

addEventListener

Copy URL
addEventListener(event: 

Events

,
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:

    Events

    Event class (e.g., AMD.Events.DetectionComplete)

  • callback:

    Function

    Handler function. A single parameter is passed - object with event information

Returns

  • type:

    void

detect

Copy URL
detect(): 

Promise<Events>

Starts answering machine or voicemail recognition session.

Returns

removeEventListener

Copy URL
removeEventListener(event: 

Events

,
callback:

Function

):

void

Removes a handler for the specified AMD.Events event

Parameters

  • event:

    Events

    Event class (i.e., AMD.Events.DetectionComplete)

  • callback:

    Function

    Optional

    Handler function. If not specified, all event listeners are removed

Returns

  • type:

    void

Props

call

Copy URL
call: 

Call

model

Copy URL
model: 

Model

timeout

Copy URL
timeout: 

number

|

undefined