It applies advanced deepfake detection models to evaluate the authenticity of speech, identifying indicators of robotic synthesis, splicing, or cloned voices. This feature is essential for fraud prevention, voice verification, and trust & safety use cases where detecting synthetic audio is critical.
The process runs asynchronously — you upload an audio file, receive a job_id, and then poll for the final verdict and confidence score.
Endpoint Overview
Method:POSTPath:
/api/v4/deepfake/audio/analyzeBase URL:
https://api.dataspike.ioAuthentication: Include your API key in the header
ds-api-token: <YOUR_API_KEY>
Supported formats: .wav, .mp3, .m4aMaximum file size:
10 MBContent type:
multipart/form-data containing one file field
Example Workflow (cURL)
The Audio Analysis API runs asynchronously.Each analysis consists of two simple steps:
1. Submit an audio file for analysis
Send your audio file to the API to start the deepfake detection job.job ID immediately.
This means the analysis has been queued — processing runs asynchronously on the backend.
Keep this id to check progress and retrieve final results.
2. Retrieve job results
status is completed, the response includes:
| Field | Description |
|---|---|
score | Confidence value (0–1). Higher values indicate stronger deepfake likelihood. |
verdict | Human-readable classification — for example deepfake_likely or deepfake_unlikely. |
Tip: Use a score threshold aligned with your use case (for example, flag recordings with score > 0.6 for manual review).
Typical Flow
- Upload an audio file for analysis.
- Store the returned
job_id. - Poll the job endpoint every few seconds until
statusbecomescompleted. - Read
scoreandverdictto make automated or manual decisions in your system.
Practical Tips
- Keep files ≤ 10 MB. If your recordings are larger, compress (e.g., transcode to mono, lower bitrate) before upload.
- One file per request. Use the
fileform field. - Backoff when polling. Poll every 1–3 seconds with exponential backoff to avoid rate limits.
- Sandbox testing (optional):
https://sandboxapi.dataspike.iowith the same paths and headers. - Handle failures: If
statusisfailed, inspectmessage/error_codeand consider retrying with cleaner audio.