***
id: f105bb17-20df-40c4-b4ac-dd0117448c0a
title: detect
slug: /node/reference/voice/call/detect
description: detect method for the Call class.
max-toc-depth: 3
----------------
[amd]: /docs/server-sdk/v4/node/reference/voice/call/amd
[calldetect]: /docs/server-sdk/v4/node/reference/voice/call-detect
[detectansweringmachine]: /docs/server-sdk/v4/node/reference/voice/call/detect-answering-machine
[detectdigit]: /docs/server-sdk/v4/node/reference/voice/call/detect-digit
[detectfax]: /docs/server-sdk/v4/node/reference/voice/call/detect-fax
### detect
* **detect**(`params`): `Promise`\<[`CallDetect`][calldetect]>
Generic method. Please see [amd][amd], [detecFax][detectfax], and [detectDigit][detectdigit].
#### Parameters
Object containing the parameters for detection.
The type of detection to perform:
* `"digit"`: see [detectDigit][detectdigit]
* `"fax"`: see [detectFax][detectfax]
* `"machine"`: see [detectAnsweringMachine][detectansweringmachine]
* `"beep"`: see [detectAnsweringMachine][detectansweringmachine]
#### Returns
`Promise`\<[`CallDetect`][calldetect]>
A promise that resolves to a [`CallDetect`][calldetect] object that you can use to
view the current state and results of the `detect` session.