An API that listens
Send a recording and get the answer with its timeline. Stream live audio and hear back every 2 seconds. Get a signed webhook when something needs a closer look, or plug a phone line in. One API, the same TrueSound 2.1 answer everywhere.
Base URLhttps://auscultare.io/api/v1
- ready{"sessionId":"0b9e4c1a-7d3f-4e2b-a5c6-1f8e9d7c6b5a","model":{"name":"TrueSound","version":"2.1","demo":false},"windowSec":4,"hopSec":2,"rollingWindows":6,"remainingSec":1740,"maxSessionSec":3600,"note":null}
- status{"state":"listening"}
- 4.0swindow{"index":0,"start":0,"end":4,"speech":0.82,"signal":0.21,"flag":false,"lean":null}
- 4.0srolling{"at":4,"label":"inconclusive","signal":null,"lean":null,"windows":1}
- 6.0swindow{"index":1,"start":2,"end":6,"speech":0.91,"signal":0.17,"flag":false,"lean":null}
- 6.0srolling{"at":6,"label":"original","signal":0.19,"lean":null,"windows":2}
- 18.0swindow{"index":7,"start":14,"end":18,"speech":0.88,"signal":0.79,"flag":true,"lean":"ai_generated"}
- 18.0srolling{"at":18,"label":"ai_generated","signal":0.68,"lean":0.81,"windows":6}
- 18.0salert{"at":18,"label":"ai_generated","signal":0.68,"alertId":"c4d2e9f1-5a6b-4c7d-8e9f-0a1b2c3d4e5f"}
- usage{"seconds":30,"remainingSec":1710}
In short
The Auscultare API reads speech in files, links and live streams and answers whether it is original, AI-generated or rebuilt by a codec or vocoder, with a timeline of where the evidence sits. Authenticate with an API key as a Bearer token: production keys come with Pro and Enterprise, development keys with every account.
Four ways in
The same reading behind every door: what you build decides which one you use.
- POST/api/v1/scansREST scansUpload a file or send a link. Get the answer for the whole recording, its timeline and its cautions.Read the guide
- WS/api/v1/liveLive WebSocketStream 16 kHz audio from a microphone, a tab or a server. A reading every 2 s, a rolling answer, alerts.Read the guide
- POSThttps://example.com/hooksWebhooksSigned JSON, Slack or Discord when a scan finishes, an answer is flagged or a live alert fires.Read the guide
- WS/api/telephony/twilio/…TelephonyOne TwiML line streams a Twilio call. Caller, agent or both, with alerts while the call goes on.Read the guide
Quickstart
A key, a file, an answer.
- Make a keyCreate one on the app’s Developers page and keep it on your server. A development key works on every plan.
- Send a recording
POST /api/v1/scanswith the file.Prefer: wait=30holds the answer for up to 30 seconds. - Read the answer
detection.labelanddetection.reliabilityfirst, then the timeline indetection.windows.
# Upload a recording and wait up to 30 s for the answer (202 + Location when it takes longer).
curl -sS "https://auscultare.io/api/v1/scans" \
-H "Authorization: Bearer $AUSCULTARE_KEY" \
-H "Prefer: wait=30" \
-F "file=@./interview.m4a" \
-F "title=Interview, take 2"Keys and modes
Every request carries Authorization: Bearer and a key. A key acts with the current rights of the person who made it.
| Mode | Key | Who has it | What it does |
|---|---|---|---|
| Production | Keyasc_live_… | Who has itPro and Enterprise | What it doesReal readings by TrueSound 2.1, counted against the workspace’s clips (Enterprise: its pool). |
| Development | Keyasc_test_… | Who has itEvery signed-in plan | What it doesRepeats the stored answer of a recording the workspace already scanned (the same audio): no detector call, nothing counted. Up to 30 requests a minute per key, 60 per workspace and 1,000 a day. |
Never put a key in a web page, an app bundle or a public repository. Browsers and the Chrome extension connect with one-use tickets that your server asks for.
The answer
The answer is for the whole recording. It is evidence for a closer look, not a verdict about a person.
- originalNo signs of AI generation or re-synthesis were found. Never “verified human”.
- ai_generatedReads as AI-generated speech.
- rebuiltRebuilt by a codec or vocoder, origin unclear. Never read this as real.
- not_originalNot original; it can’t tell whether AI-generated or rebuilt.
- inconclusiveNot rated: no usable speech was found. The timeline still comes back, faded.
And around it
reliability.level: normal, low (under 2.5 s of speech: showreliability.notenext to the answer) or insufficient.signal: the evidence of “not original” on a 0 to 1 scale, with 0.5 at the line. Not a probability, and not a share of fake speech.lean: the second answer’s strength. Above 0.5 leans AI-generated, under 0.5 leans rebuilt, near 0.5 can’t tell.windows: the timeline, every stretch read, overlapping, each with its signal. One hot stretch does not make a recording not original, and the timeline is not a splice detector.recording.cautions: short_speech, phone_quality, long_recording, music_or_noise. Measured conditions that make the answer less certain.detection.detector.demo: true only on development servers without the real model. Never present such an answer as real.
Errors
Every error is an RFC 9457 problem (application/problem+json) with a stable code and a requestId to quote to support.
| Code | Status | Meaning |
|---|---|---|
| validation_failed | Status400 | MeaningA field is missing or malformed: errors lists each one. |
| unauthorized | Status401 | MeaningNo key, or a key that is not valid. |
| quota_exceeded · clips_exceeded | Status402 | MeaningThe allowance is used up, or a long recording counts more clips than are left today (clips_exceeded). The body’s quota says what is left and when it resets. |
| upgrade_required | Status402 | MeaningA production key on a plan without production access (suggestedPlan says which). |
| forbidden | Status403 | MeaningThe key’s owner may not do this. |
| not_found | Status404 | MeaningNo such scan, or not one the key may see. |
| audio_gone | Status410 | MeaningThe recording’s audio was deleted or its retention ended. The answer stays. |
| scan_in_progress | Status409 | MeaningOne scan at a time on this plan: try again after Retry-After. |
| too_large | Status413 | MeaningAn upload over 95 MB or a link over 300 MB. |
| unsupported_type | Status415 | MeaningNot an audio or video file. |
| too_long | Status422 | MeaningLonger than the plan’s longest file. |
| unreadable_audio · no_audio_stream | Status422 | MeaningDamaged audio, or a video without sound. |
| fetch_failed · url_not_allowed | Status422 | MeaningThe link could not be fetched, is not audio or video, or points to a private address. |
| idempotency_key_reused | Status422 | MeaningThe same Idempotency-Key with a different request. |
| unknown_test_audio | Status422 | MeaningDevelopment mode: the workspace has never scanned this audio, so there is no stored answer to repeat. |
| rate_limited | Status429 | MeaningToo many requests: wait for Retry-After. RateLimit-* headers say what is left. |
| detector_unavailable | Status503 | MeaningThe detector could not answer. Try again later; a failed scan is never counted. |
{
"type": "https://auscultare.io/api/problems#too_long",
"title": "Recording too long",
"status": 422,
"code": "too_long",
"detail": "This recording is 3 h 12 min long; your plan reads files up to 3 hours.",
"instance": "/api/v1/scans",
"requestId": "req_7Yc2kR9wQ1"
}Headers worth knowing
Idempotency-Key: a retry of the same POST returns the same scan (24 hours).Prefer: wait=N: wait up to N seconds (30 at most) for the answer before a 202.Location: where a 202’s scan can be read.RateLimit-Limit,-Remaining,-Reset: your key’s budget.X-Request-Id: quote it when you write to us.Auscultare-Demo: 1: the answer came from the demo detector.
Keys, playground and logs are in the app
Make and revoke keys, try requests in the playground with your own recordings, and read every request your keys made for 90 days.
Call centres, newsrooms and platforms with larger volumes: Enterprise sets a pool of minutes by contract.