AI-Generated Speech Detection
ai_speechDetect if a voice or speech recording was generated with an AI model such as ElevenLabs, OpenAI, PlayHT, Resemble and more.
This model is available on the Pro and Enterprise plans. See pricing for details.
Overview
The AI-Generated Speech Detection Model can help you determine if a voice or speech recording was generated by an AI model, or if it is a genuine human recording. This model was trained on artificially-created and human-recorded speech spanning a wide variety of voices, languages, accents, speaking styles and recording conditions.
The Model works by analyzing the acoustic content of the audio waveform. No meta-data is used in the analysis. Tampering with meta-data therefore has no effect on the scoring.
The Model was trained to detect speech generated by the main voice generators currently in use: ElevenLabs, OpenAI, PlayHT, Resemble AI, Murf, WellSaid, Microsoft Neural TTS, Google WaveNet etc. Additional generators are added as they become available.
Use cases
- Deepfake voice detection
- Fraud prevention in call centers and customer support
- Voice-based KYC and identity verification
- Detection of voice-clone scams and impersonation
- Journalism, authenticity verification and fact-checking
- Content moderation for podcasts, voice messages and user-generated audio
- Limit the spread of audio misinformation and synthetic political speech
Related models
The following model can provide a useful complement to the AI-generated speech model:
- AI Video Detection: Detect AI-generated videos. This model only analyzes the visual frames, not the audio track. To check the voices in a video, add the AI speech model to the same request (see videos).
- AI Music Detection: Detect AI-generated music tracks.
Generator-specific information
Sightengine's AI Speech detection model is trained on speech from a wide range of voice generators. The API response contains a global AI probability score. Per-generator confidence scores are not part of the standard response: please contact sales if you need them.
The list of in-scope speech generators covers commercial APIs, open-source models, and emerging providers:
Speech generators
| Generator | Creator | Example versions detected |
| Amazon Polly | Amazon | Neural, Generative voices... |
| Azure Neural TTS | Microsoft | Neural TTS, VALL-E, VALL-E 2... |
| Bark | Suno | Bark, Bark Small... |
| Chatterbox / Resemble | Resemble AI | Chatterbox, Resemble v2... |
| Coqui | Coqui | XTTS, XTTS v2... |
| CosyVoice | Alibaba | CosyVoice, CosyVoice 2... |
| ElevenLabs | ElevenLabs | Multilingual v2, Turbo v2, Flash... |
| F5-TTS | SWivid | F5-TTS, F5-TTS v1... |
| Fish Audio | Fish Audio | Fish Pro S1, Fish Pro S2... |
| Google TTS | WaveNet, Chirp, Chirp 3... | |
| GPT-SoVITS | RVC-Boss | GPT-SoVITS v1, v2, v3... |
| Grok Voice | xAI | Grok Voice... |
| HeyGen | HeyGen | HeyGen voices... |
| MiniMax | MiniMax | Speech-01, Speech-02... |
| OpenAI | OpenAI | TTS-1, TTS-1-HD, Voice Engine, GPT-4o audio... |
| Qwen | Alibaba | Qwen3, Qwen3-TTS... |
| SeamlessM4T | Meta | SeamlessM4T, SeamlessM4T v2... |
| Synthesia | Synthesia | Synthesia voices... |
| Tortoise | Neonbjb | Tortoise TTS... |
| Voicemod | Voicemod | Voicemod AI voices... |
| Other generators | Various | Camb AI, Cartesia, Descript, Hume AI, Inworld, Kits AI, Kokoro, LMNT, Murf, Parler TTS, PlayHT, Replica Studios, Speechify, Tacotron 2, WellSaid Labs... |
And more, new generators are added continuously as they appear in the wild.
Which endpoint to use
If you haven't already, create an account to get your own API keys. Then pick the endpoint that matches what you analyze. All of them return the same results.
| What you analyze | Endpoint | How you get the results | |
| Audio file up to 5 minutes | audio/check.json | in the response | Code example ↓ |
| Longer audio file, or live audio stream | audio/check-async.json | callbacks and polling, as the audio is analyzed | Code example ↓ |
| Video up to 60 seconds | video/check-sync.json | in the response | Code example ↓ |
| Longer video, or live video stream | video/check.json | callbacks and polling, as the video is analyzed | Code example ↓ |
On videos, only the audio track is analyzed for AI speech. You can add visual models such as AI-generated video detection or deepfake detection to the same request.
Results
Whatever the endpoint, the results have two parts:
- type.ai_speech: a score between 0 and 1 for the whole audio. The higher the value, the higher the confidence that the speech is AI-generated.
- segments.ai_speech: the audio cut into successive 4-second segments, each with its start and end in milliseconds and its own ai_speech score. Use it to locate the parts that contain AI-generated speech.
{
"status": "success",
"request": {
"id": "req_0zrbHDeitGYY7wEGncAne",
"timestamp": 1491402308.4762,
"operations": 4
},
"type": {
"ai_speech": 0.98
},
"segments": {
"ai_speech": [
{
"start_ms": 0,
"end_ms": 4000,
"ai_speech": 0.97
},
{
"start_ms": 4000,
"end_ms": 8000,
"ai_speech": 0.99
}
]
},
"media": {
"id": "med_0zrbk8nlp4vwI5WxIqQ4u",
"uri": "speech.mp3"
}
}
On videos, the same type and segments are under data.audio, and positions are counted from the start of the video. If a video has no audio track, the score is 0 and the list of segments is empty.
Operations: 1 operation per 2 seconds of audio analyzed. On videos, this comes on top of the operations of the visual models, if any. A video without an audio track uses no operation for ai_speech.
Audio files up to 5 minutes
Send the file under the audio key. Supported formats: OGG, OPUS, FLAC, WAV, MP3, M4A, WEBM.
curl -X POST 'https://api.sightengine.com/1.0/audio/check.json' \
-F 'audio=@/path/to/audio.mp3' \
-F 'models=ai_speech' \
-F 'api_user={api_user}' \
-F 'api_secret={api_secret}'
# this example uses requests
import requests
import json
params = {
'models': 'ai_speech',
'api_user': '{api_user}',
'api_secret': '{api_secret}'
}
files = {'audio': open('/path/to/audio.mp3', 'rb')}
r = requests.post('https://api.sightengine.com/1.0/audio/check.json', files=files, data=params)
output = json.loads(r.text)
$params = array(
'audio' => new CurlFile('/path/to/audio.mp3'),
'models' => 'ai_speech',
'api_user' => '{api_user}',
'api_secret' => '{api_secret}',
);
// this example uses cURL
$ch = curl_init('https://api.sightengine.com/1.0/audio/check.json');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($ch);
curl_close($ch);
$output = json_decode($response, true);
// this example uses axios and form-data
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
data = new FormData();
data.append('audio', fs.createReadStream('/path/to/audio.mp3'));
data.append('models', 'ai_speech');
data.append('api_user', '{api_user}');
data.append('api_secret', '{api_secret}');
axios({
method: 'post',
url:'https://api.sightengine.com/1.0/audio/check.json',
data: data,
headers: data.getHeaders()
})
.then(function (response) {
// on success: handle response
console.log(response.data);
})
.catch(function (error) {
// handle error
if (error.response) console.log(error.response.data);
else console.log(error.message);
});
See request parameter description
| Parameter | Type | Description |
| audio | file | audio file to analyze |
| models | string | comma-separated list of models to apply |
| api_user | string | your API user id |
| api_secret | string | your API secret |
The response is shown in Results. Longer files are refused with error 753: use audio/check-async.json.
Long audio files and live audio streams
Send the file under the audio key, as for short files:
curl -X POST 'https://api.sightengine.com/1.0/audio/check-async.json' \
-F 'audio=@/path/to/audio.mp3' \
-F 'models=ai_speech' \
-F 'callback_url=https://your.callback.url/path' \
-F 'api_user={api_user}' \
-F 'api_secret={api_secret}'
# this example uses requests
import requests
import json
params = {
'models': 'ai_speech',
# where you want to receive result callbacks
'callback_url': 'https://your.callback.url/path',
'api_user': '{api_user}',
'api_secret': '{api_secret}'
}
files = {'audio': open('/path/to/audio.mp3', 'rb')}
r = requests.post('https://api.sightengine.com/1.0/audio/check-async.json', files=files, data=params)
output = json.loads(r.text)
$params = array(
'audio' => new CurlFile('/path/to/audio.mp3'),
'models' => 'ai_speech',
'callback_url' => 'https://your.callback.url/path',
'api_user' => '{api_user}',
'api_secret' => '{api_secret}',
);
// this example uses cURL
$ch = curl_init('https://api.sightengine.com/1.0/audio/check-async.json');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($ch);
curl_close($ch);
$output = json_decode($response, true);
// this example uses axios and form-data
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
data = new FormData();
data.append('audio', fs.createReadStream('/path/to/audio.mp3'));
data.append('models', 'ai_speech');
data.append('callback_url', 'https://your.callback.url/path');
data.append('api_user', '{api_user}');
data.append('api_secret', '{api_secret}');
axios({
method: 'post',
url:'https://api.sightengine.com/1.0/audio/check-async.json',
data: data,
headers: data.getHeaders()
})
.then(function (response) {
// on success: handle response
console.log(response.data);
})
.catch(function (error) {
// handle error
if (error.response) console.log(error.response.data);
else console.log(error.message);
});
Or send the URL of a live audio stream (HLS, RTMP...) as stream_url:
curl -X POST 'https://api.sightengine.com/1.0/audio/check-async.json' \
--data-urlencode 'stream_url=https://domain.tld/path/stream.m3u8' \
-d 'models=ai_speech' \
-d 'callback_url=https://your.callback.url/path' \
-d 'api_user={api_user}' \
-d 'api_secret={api_secret}'
# this example uses requests
import requests
import json
params = {
'stream_url': 'https://domain.tld/path/stream.m3u8',
# specify the models you want to apply
'models': 'ai_speech',
# specify where you want to receive result callbacks
'callback_url': 'https://your.callback.url/path',
'api_user': '{api_user}',
'api_secret': '{api_secret}'
}
r = requests.post('https://api.sightengine.com/1.0/audio/check-async.json', data=params)
output = json.loads(r.text)
$params = array(
'stream_url' => 'https://domain.tld/path/stream.m3u8',
// specify the models you want to apply
'models' => 'ai_speech',
// specify where you want to receive result callbacks
'callback_url' => 'https://your.callback.url/path',
'api_user' => '{api_user}',
'api_secret' => '{api_secret}',
);
// this example uses cURL
$ch = curl_init('https://api.sightengine.com/1.0/audio/check-async.json');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($ch);
curl_close($ch);
$output = json_decode($response, true);
// this example uses axios and form-data
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
data = new FormData();
data.append('stream_url', 'https://domain.tld/path/stream.m3u8');
// specify the models you want to apply
data.append('models', 'ai_speech');
// specify where you want to receive result callbacks
data.append('callback_url', 'https://your.callback.url/path');
data.append('api_user', '{api_user}');
data.append('api_secret', '{api_secret}');
axios({
method: 'post',
url:'https://api.sightengine.com/1.0/audio/check-async.json',
data: data,
headers: data.getHeaders()
})
.then(function (response) {
// on success: handle response
console.log(response.data);
})
.catch(function (error) {
// handle error
if (error.response) console.log(error.response.data);
else console.log(error.message);
});
See request parameter description
| Parameter | Type | Description |
| audio | file | audio file to analyze. Alternatively, send media_id or stream_url |
| media_id | string | id of a file uploaded through the Upload API, instead of audio (optional) |
| stream_url | string | URL of an audio file or of a live stream (HLS, RTMP...), instead of audio (optional) |
| models | string | ai_speech |
| callback_url | string | callback URL to receive the results (optional) |
| max_duration | integer | maximum duration to analyze, in seconds. Default is 1800, up to 3600 on Starter and Pro plans (optional) |
| api_user | string | your API user id |
| api_secret | string | your API secret |
Large files can also be uploaded first through the Upload API, and sent as media_id.
Videos up to 60 seconds
Add ai_speech to the models of a video request, with or without visual models:
curl -X POST 'https://api.sightengine.com/1.0/video/check-sync.json' \
-F 'media=@/path/to/video.mp4' \
-F 'models=ai_speech' \
-F 'api_user={api_user}' \
-F 'api_secret={api_secret}'
# this example uses requests
import requests
import json
params = {
# specify the models you want to apply
'models': 'ai_speech',
'api_user': '{api_user}',
'api_secret': '{api_secret}'
}
files = {'media': open('/path/to/video.mp4', 'rb')}
r = requests.post('https://api.sightengine.com/1.0/video/check-sync.json', files=files, data=params)
output = json.loads(r.text)
$params = array(
'media' => new CurlFile('/path/to/video.mp4'),
// specify the models you want to apply
'models' => 'ai_speech',
'api_user' => '{api_user}',
'api_secret' => '{api_secret}',
);
// this example uses cURL
$ch = curl_init('https://api.sightengine.com/1.0/video/check-sync.json');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($ch);
curl_close($ch);
$output = json_decode($response, true);
// this example uses axios and form-data
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
data = new FormData();
data.append('media', fs.createReadStream('/path/to/video.mp4'));
// specify the models you want to apply
data.append('models', 'ai_speech');
data.append('api_user', '{api_user}');
data.append('api_secret', '{api_secret}');
axios({
method: 'post',
url:'https://api.sightengine.com/1.0/video/check-sync.json',
data: data,
headers: data.getHeaders()
})
.then(function (response) {
// on success: handle response
console.log(response.data);
})
.catch(function (error) {
// handle error
if (error.response) console.log(error.response.data);
else console.log(error.message);
});
See request parameter description
| Parameter | Type | Description |
| media | file | video to analyze |
| models | string | comma-separated list of models to apply |
| interval | float | frame interval in seconds, out of 0.5, 1, 2. Default is 2. Longer intervals (3, 4, 5) are available on request (optional) |
| api_user | string | your API user id |
| api_secret | string | your API secret |
The results are under data.audio. Results of visual models, if any, are under data.frames:
{
"status": "success",
"request": {
"id": "req_1OjggusalNb2S7MxwLq2h",
"timestamp": 1509132120.6988,
"operations": 4
},
"media": {
"id": "med_1OjgEqvJtOhqP7sfNe3ga",
"uri": "video.mp4"
},
"data": {
"audio": {
"type": {
"ai_speech": 0.95
},
"segments": {
"ai_speech": [
{
"start_ms": 0,
"end_ms": 4000,
"ai_speech": 0.97
},
{
"start_ms": 4000,
"end_ms": 8000,
"ai_speech": 0.93
}
]
}
}
}
}
Long videos and live streams
Send a video file:
curl -X POST 'https://api.sightengine.com/1.0/video/check.json' \
-F 'media=@/path/to/video.mp4' \
-F 'models=ai_speech' \
-F 'callback_url=https://your.callback.url/path' \
-F 'api_user={api_user}' \
-F 'api_secret={api_secret}'
# this example uses requests
import requests
import json
params = {
# specify the models you want to apply
'models': 'ai_speech',
# specify where you want to receive result callbacks
'callback_url': 'https://your.callback.url/path',
'api_user': '{api_user}',
'api_secret': '{api_secret}'
}
files = {'media': open('/path/to/video.mp4', 'rb')}
r = requests.post('https://api.sightengine.com/1.0/video/check.json', files=files, data=params)
output = json.loads(r.text)
$params = array(
'media' => new CurlFile('/path/to/video.mp4'),
// specify the models you want to apply
'models' => 'ai_speech',
// specify where you want to receive result callbacks
'callback_url' => 'https://your.callback.url/path',
'api_user' => '{api_user}',
'api_secret' => '{api_secret}',
);
// this example uses cURL
$ch = curl_init('https://api.sightengine.com/1.0/video/check.json');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($ch);
curl_close($ch);
$output = json_decode($response, true);
// this example uses axios and form-data
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
data = new FormData();
data.append('media', fs.createReadStream('/path/to/video.mp4'));
// specify the models you want to apply
data.append('models', 'ai_speech');
// specify where you want to receive result callbacks
data.append('callback_url', 'https://your.callback.url/path');
data.append('api_user', '{api_user}');
data.append('api_secret', '{api_secret}');
axios({
method: 'post',
url:'https://api.sightengine.com/1.0/video/check.json',
data: data,
headers: data.getHeaders()
})
.then(function (response) {
// on success: handle response
console.log(response.data);
})
.catch(function (error) {
// handle error
if (error.response) console.log(error.response.data);
else console.log(error.message);
});
Or the URL of a live stream as stream_url:
curl -X POST 'https://api.sightengine.com/1.0/video/check.json' \
--data-urlencode 'stream_url=https://domain.tld/path/stream.m3u8' \
-d 'models=ai_speech' \
-d 'callback_url=https://your.callback.url/path' \
-d 'api_user={api_user}' \
-d 'api_secret={api_secret}'
# this example uses requests
import requests
import json
params = {
'stream_url': 'https://domain.tld/path/stream.m3u8',
# specify the models you want to apply
'models': 'ai_speech',
# specify where you want to receive result callbacks
'callback_url': 'https://your.callback.url/path',
'api_user': '{api_user}',
'api_secret': '{api_secret}'
}
r = requests.post('https://api.sightengine.com/1.0/video/check.json', data=params)
output = json.loads(r.text)
$params = array(
'stream_url' => 'https://domain.tld/path/stream.m3u8',
// specify the models you want to apply
'models' => 'ai_speech',
// specify where you want to receive result callbacks
'callback_url' => 'https://your.callback.url/path',
'api_user' => '{api_user}',
'api_secret' => '{api_secret}',
);
// this example uses cURL
$ch = curl_init('https://api.sightengine.com/1.0/video/check.json');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($ch);
curl_close($ch);
$output = json_decode($response, true);
// this example uses axios and form-data
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
data = new FormData();
data.append('stream_url', 'https://domain.tld/path/stream.m3u8');
// specify the models you want to apply
data.append('models', 'ai_speech');
// specify where you want to receive result callbacks
data.append('callback_url', 'https://your.callback.url/path');
data.append('api_user', '{api_user}');
data.append('api_secret', '{api_secret}');
axios({
method: 'post',
url:'https://api.sightengine.com/1.0/video/check.json',
data: data,
headers: data.getHeaders()
})
.then(function (response) {
// on success: handle response
console.log(response.data);
})
.catch(function (error) {
// handle error
if (error.response) console.log(error.response.data);
else console.log(error.message);
});
See request parameter description
| Parameter | Type | Description |
| media | file | video to analyze |
| callback_url | string | callback URL to receive moderation updates (optional) |
| models | string | comma-separated list of models to apply |
| interval | float | frame interval in seconds, out of 0.5, 1, 2. Default is 2. Longer intervals (3, 4, 5) are available on request (optional) |
| api_user | string | your API user id |
| api_secret | string | your API secret |
The job is an ordinary asynchronous video analysis, with the AI speech results added under data.audio.
How results come with asynchronous requests
This applies to audio/check-async.json and video/check.json.
1. The API answers right away with a media id, which identifies the analysis:
{
"status": "success",
"request": {
"id": "req_1ML249NoEZ8j12op9Lipg",
"timestamp": 1508774201.3177
},
"media": {
"id": "med_1ML2ufAuz7NbpBNPKDTmD",
"uri": "speech.mp3"
},
"callback": "https://your.callback.url/path"
}
2. The results grow as the audio is analyzed, about every 20 seconds of audio for a file and every 8 seconds for a live stream. Until the end, data.status is ongoing and the ai_speech score is the score of the audio analyzed so far:
{
"media": {
"id": "med_1ML2ufAuz7NbpBNPKDTmD",
"uri": "speech.mp3"
},
"request": "req_1ML249NoEZ8j12op9Lipg",
"data": {
"status": "ongoing",
"started": 1508774201.4201,
"last_update": 1508774229.8726,
"progress": 0.33,
"operations": 20,
"audio": {
"type": {
"ai_speech": 0.96
},
"segments": {
"ai_speech": [
{
"start_ms": 0,
"end_ms": 4000,
"ai_speech": 0.97
},
...
{
"start_ms": 36000,
"end_ms": 40000,
"ai_speech": 0.94
}
]
}
}
}
}
3. You get the results in two ways:
- Callbacks to your callback_url: when a newly analyzed part is likely AI-generated speech (a segment scoring 0.5 or more), when the analysis is finished, and when it is stopped or fails. Their callback_type is audio.analysis.ongoing, audio.analysis.finished, audio.analysis.stopped or audio.analysis.failure (video.analysis.* for a video sent to video/check.json). See callbacks.
- Polling: a GET on audio/byid.json (or video/byid.json for videos) with id=MEDIA_ID returns the latest results. A DELETE on it stops the analysis, which then keeps the results of the audio analyzed so far. See interact with jobs.
Limits: the analysis runs for up to 30 minutes by default, and up to 60 minutes on Starter and Pro plans with the max_duration parameter (in seconds). Asynchronous audio and video analyses count toward your plan's limit of concurrent jobs.
Frequently asked questions
Which AI speech generators are supported?
The model targets all current voice generators, including ElevenLabs, OpenAI, PlayHT, Resemble AI, Murf, WellSaid, Microsoft Neural TTS, Google WaveNet, Amazon Polly, Descript Overdub, LMNT, Cartesia, Hume AI, Coqui, Tortoise and Bark, along with smaller and emerging generators. The model is updated on an ongoing basis as new generators become available. See Supported AI generators.
How does detection work without metadata or a watermark?
Detection is purely waveform-based. Metadata and inaudible watermarks are ignored, so stripping them has no effect on the result.
What does the ai_speech score mean?
It is the model's confidence, from 0 to 1, that the analyzed audio was produced by a generative AI voice model. Higher means more likely AI-generated. Scores above 0.5 typically indicate AI-generated speech; tune the threshold to your precision/recall preference.
Will real recordings with noise, compression or post-processing be flagged?
No. Standard post-production such as denoising, equalization, compression, phone-line transmission or social-platform re-encoding is treated as original audio. The model targets fully synthetic generated speech, not edited real recordings.
Does it work on phone calls, voice messages and socially-shared audio?
Yes. Detection is robust to re-encoding, downsampling, narrowband phone audio and standard social-platform recompression. Confidence may drop somewhat on heavily degraded clips, but the model is specifically developed to handle real-world redistribution artifacts.
Does it work across languages and accents?
Yes. The model was trained on speech spanning many languages, accents and speaking styles, and is designed to generalize beyond a single language. Performance is best on the most widely-used languages, with ongoing improvements for additional locales.
Is music detection also available?
Yes. A dedicated model targets AI-generated music tracks. See AI-Generated Music Detection.
Can I call this model together with other Sightengine models?
Yes. For audio files of up to 5 minutes, pass a comma-separated list in the models parameter of audio/check.json: models=ai_speech,ai_music returns both results in a single response. For videos, combine ai_speech with visual models such as genai or deepfake. AI music detection is not available on videos or on audio/check-async.json.