Transcribe pre-recorded audio with speaker diarization using the Deepgram API

domain: developers.deepgram.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. POST the audio file (or a URL to it) to https://api.deepgram.com/v1/listen, authenticating with a Deepgram API key.
  2. Add the diarize=true query parameter to enable speaker diarization on the request.
  3. Optionally pin a diarization model version with diarize_model=v1 or diarize_model=v2 rather than relying on the floating latest alias.
  4. Combine with utterances=true to receive the response grouped into speaker-labeled utterances rather than only per-word speaker tags.
  5. Parse the response's word-level array, where each word includes a speaker index and speaker_confidence value.

Known gotchas

Related routes

Transcribe real-time audio with AssemblyAI Universal-Streaming via the v3 WebSocket endpoint
assemblyai.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans