# Speaker Diarization & Multi-Speaker Transcription

> Speaker Diarization & Multi-Speaker Transcription is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Transcribes audio with speaker labels using Whisper v3, returning utterances grouped by speaker with per-speaker statistics (utterance count, total seconds, word count).

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/speaker-diarize
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-78609d3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PuZ3-1GeQNYrZPKtTD0eV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-deployer-x402-deployer-workers-dev-78609d3a -d '<json body>'
```

Example prompt: Transcribe this podcast audio and tell me who said what — I need the transcript broken out by speaker with stats on how much each person spoke: [audio URL].

## When to prefer this

Choose this endpoint when you need to know not just what was said but who said it — e.g. for interviews, meetings, podcasts, or multi-party calls. It combines Whisper v3 transcription quality with speaker separation, returning both the full labeled transcript and per-speaker usage statistics in one call. Prefer this over plain transcription endpoints when speaker attribution matters.

## Known failure modes

- Unsupported audio format returns an error
- Audio URL unreachable or times out
- Single-speaker audio may produce inaccurate diarization
- Very long audio files may exceed processing limits
- Payment failure returns 402 with payment details
- Overlapping speech may reduce speaker separation accuracy

## How this service works

Speaker diarization / who-said-what transcription. Whisper v3 + speaker labels. Returns utterances grouped by speaker, plus per-speaker stats (count, seconds, words). 60 min max.

## Output

A structured response containing utterances grouped by speaker with speaker labels, plus per-speaker statistics including utterance count, total duration in seconds, and word count for each identified speaker.

## Example request

```json
{
 "input": {
  "body": {
   "language": "en",
   "media_url": "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3",
   "num_speakers": 2
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "media_url": {
       "type": "string",
       "description": "Audio or video URL to transcribe and diarize. Max 60 minutes duration."
      },
      "language": {
       "type": "string",
       "description": "ISO language code hint for transcription. Optional; auto-detected if omitted."
      },
      "num_speakers": {
       "type": "number",
       "description": "Expected number of speakers. Optional; 1-20, auto-detected if omitted."
      }
     },
     "required": [
      "media_url"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "utterances": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "speaker": {
          "type": "string"
         },
         "start": {
          "type": "integer"
         },
         "end": {
          "type": "number"
         },
         "text": {
          "type": "string"
         }
        }
       }
      },
      "speaker_count": {
       "type": "integer"
      },
      "duration_seconds": {
       "type": "integer"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-78609d3a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
