Diarizations
Create a diarization
Find who spoke when with AirCaps Diarization-v1 (enabled per account). The job runs asynchronously: poll Get a diarization or pass webhook_url.
post/v1/diarizations
Request
- Base URLhttps://api.aircaps.com
- URLhttps://api.aircaps.com/v1/diarizations
- AuthHTTP bearer
Headers
Idempotency-Keystring
Up to 255 characters. Makes retries safe: the same key and body return the original job.
Request body
Example request
{
"audio_url": "https://example.com/meeting.mp3",
"webhook_auth_header_name": "Authorization",
"metadata": {
"meeting_id": 42
}
}Response
Created. A retried request with the same Idempotency-Key returns the original diarization with 200.
Example response
{
"id": "dia_01k72p0x9h6t3b8r1n4m7q2w5e",
"object": "diarization",
"audio_duration": 3600.512,
"num_speakers": 3,
"speakers": [
{
"id": "speaker_0",
"speaking_time": 1402.11
}
],
"segments": [
{
"speaker": "speaker_0",
"start": 0.48,
"end": 6.12
}
],
"speech_duration": 1498.27,
"overlap_duration": 61.44
}Changes
No recorded changes to this operation across all 1 revision of this API.