synthetic, non-synthetic, or no-content across time-windowed frames. Use batch for complete files; use streaming for real-time anti-spoofing checks.
Batch
Send a complete audio file and receive frame-level verdicts for the full clip.Expected response
Expected response
confidence (0–1) reflects the model’s certainty for that frame’s verdict.
Streaming (WebSocket)
Connect over WebSocket and receive frame verdicts progressively as audio arrives — useful for real-time anti-spoofing in voice authentication flows.Deepfake Detection streaming always requires the
audio_format query parameter. Raw PCM — 16 kHz mono signed 16-bit little-endian (s16le) — gives the lowest latency and is the most common setup. Container formats (mp3, wav, ogg, flac, webm, and more) are also supported: pass the container’s audio_format (e.g. audio_format=webm) and omit sample_rate/num_channels, since the container carries them.To convert a file to raw PCM:Example messages received
Example messages received
Deepfake score in transcription
If you need transcription and a deepfake signal, the Multilingual Transcription Batch API supportsdeepfake_signal=true — it adds a per-utterance deepfake_score without a second API call. Use the dedicated Deepfake Detection APIs when you need frame-level results, explicit no-content verdicts, or streaming verdicts without transcription.
API reference
- Deepfake Detection Batch — full parameter and response schema
- Deepfake Detection Streaming — WebSocket protocol, PCM format requirements, close codes