> 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** **`event`** `AMD.Events | T` — required --- **`callback`** `(event: AMD._Events[T]) => any` — required --- ### detect Starts answering machine or voicemail recognition session. ```ts detect(): Promise ``` ### 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** **`event`** `AMD.Events | T` — required --- **`callback`** `(event: AMD._Events[T]) => any` --- ## Properties **`call`** `Call` *readonly, optional* --- **`model`** `AMD.Model` *readonly* --- **`timeout`** `number` *readonly, optional* --- > Answering machine or voicemail detector class.