Skip to main content
Telnyx Deepfake Detection analyzes live call audio to determine whether the remote party’s voice is human or AI-generated. When enabled, audio is streamed in real time to a detection model that returns a classification result via webhook. Deepfake detection is available on both outbound calls (Dial) and inbound calls (Answer).

How it works

  1. You enable deepfake_detection when dialing or answering a call.
  2. Telnyx streams the remote party’s audio to the detection service.
  3. The service analyzes audio frames and returns a result within the configured timeout.
  4. You receive a call.deepfake_detection.result webhook with the classification, or a call.deepfake_detection.error webhook if something went wrong.
The call proceeds normally while detection runs in the background — there is no impact on call audio or latency.

Configuration parameters

Enabling on an outbound call

Include the deepfake_detection object when creating an outbound call via the Dial command:

Enabling on an inbound call

Add deepfake_detection to the Answer command when picking up an incoming call:

Handling the result webhook

When detection completes, you receive a call.deepfake_detection.result webhook:

Result fields

Handling errors

If detection fails, you receive a call.deepfake_detection.error webhook:

Error types

Example: screening inbound calls

This example webhook server answers inbound calls with deepfake detection enabled and takes action based on the result.

Best practices

  • Set appropriate timeouts. The default 15-second detection timeout works well for most calls. Increase it if callers may take longer to start speaking (e.g., IVR prompts on the remote end).
  • Use score and consistency together. A high score with high consistency is a strong signal. A high score with low consistency may warrant additional verification rather than an immediate hangup.
  • Handle errors gracefully. Detection errors should not block the call. Design your application to fall through to normal call handling when detection is unavailable.