AnsweringMachineDetector

Answering machine or voicemail detector class.
View as Markdown

Methods

addEventListener

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.

1addEventListener(event: AMD.Events | T, callback: (event: AMD._Events[T]) => any): void

Parameters

event
AMD.Events | TRequired
callback
(event: AMD._Events[T]) => anyRequired

detect

Starts answering machine or voicemail recognition session.

1detect(): Promise<AMD.Events>

id

Returns the Answering machine detector’s id.

1id(): string

removeEventListener

Removes a handler for the specified AMD.Events event.

1removeEventListener(event: AMD.Events | T, callback?: (event: AMD._Events[T]) => any): void

Parameters

event
AMD.Events | TRequired
callback
(event: AMD._Events[T]) => any

Properties

call
Call

readonly, optional

model
AMD.Model

readonly

timeout
number

readonly, optional