> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# AnsweringMachineDetector

## Methods

### addEventListener

Adds a handler for the specified [AMD.Events](/api-reference/voxengine/amd/events). Use only functions as handlers; anything except a function leads to an error and scenario termination when a handler is called.

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

**Parameters**

### detect

Starts answering machine or voicemail recognition session.

```ts
detect(): Promise<AMD.Events>
```

### id

Returns the Answering machine detector's id.

```ts
id(): string
```

### removeEventListener

Removes a handler for the specified [AMD.Events](/api-reference/voxengine/amd/events) event.

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

**Parameters**

## Properties

*readonly, optional*

*readonly*

*readonly, optional*