Skip to content
Developers

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

WSwss://auscultare.io/api/v1/livelive
  1. 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}
  2. status{"state":"listening"}
  3. 4.0swindow{"index":0,"start":0,"end":4,"speech":0.82,"signal":0.21,"flag":false,"lean":null}
  4. 4.0srolling{"at":4,"label":"inconclusive","signal":null,"lean":null,"windows":1}
  5. 6.0swindow{"index":1,"start":2,"end":6,"speech":0.91,"signal":0.17,"flag":false,"lean":null}
  6. 6.0srolling{"at":6,"label":"original","signal":0.19,"lean":null,"windows":2}
  7. 18.0swindow{"index":7,"start":14,"end":18,"speech":0.88,"signal":0.79,"flag":true,"lean":"ai_generated"}
  8. 18.0srolling{"at":18,"label":"ai_generated","signal":0.68,"lean":0.81,"windows":6}
  9. 18.0salert{"at":18,"label":"ai_generated","signal":0.68,"alertId":"c4d2e9f1-5a6b-4c7d-8e9f-0a1b2c3d4e5f"}
  10. usage{"seconds":30,"remainingSec":1710}
Illustration: a fictional session, not a real reading.

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.

Quickstart

A key, a file, an answer.

  1. Make a keyCreate one on the app’s Developers page and keep it on your server. A development key works on every plan.
  2. Send a recordingPOST /api/v1/scans with the file. Prefer: wait=30 holds the answer for up to 30 seconds.
  3. Read the answerdetection.label and detection.reliability first, then the timeline in detection.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.

Keys and modes
ModeKeyWho has itWhat it does
Productionasc_live_…Pro and EnterpriseReal readings by TrueSound 2.1, counted against the workspace’s clips (Enterprise: its pool).
Developmentasc_test_…Every signed-in planRepeats 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: show reliability.note next 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.
What the answer cannot tell you

Errors

Every error is an RFC 9457 problem (application/problem+json) with a stable code and a requestId to quote to support.

Errors
CodeStatusMeaning
validation_failed400A field is missing or malformed: errors lists each one.
unauthorized401No key, or a key that is not valid.
quota_exceeded · clips_exceeded402The 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_required402A production key on a plan without production access (suggestedPlan says which).
forbidden403The key’s owner may not do this.
not_found404No such scan, or not one the key may see.
audio_gone410The recording’s audio was deleted or its retention ended. The answer stays.
scan_in_progress409One scan at a time on this plan: try again after Retry-After.
too_large413An upload over 95 MB or a link over 300 MB.
unsupported_type415Not an audio or video file.
too_long422Longer than the plan’s longest file.
unreadable_audio · no_audio_stream422Damaged audio, or a video without sound.
fetch_failed · url_not_allowed422The link could not be fetched, is not audio or video, or points to a private address.
idempotency_key_reused422The same Idempotency-Key with a different request.
unknown_test_audio422Development mode: the workspace has never scanned this audio, so there is no stored answer to repeat.
rate_limited429Too many requests: wait for Retry-After. RateLimit-* headers say what is left.
detector_unavailable503The detector could not answer. Try again later; a failed scan is never counted.
HTTP/1.1 422 · application/problem+json
{
  "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.