Skip to main content
How to get clean, correctly split speakers from AudioDiarize, AudioPod’s speaker separation: pick the right job, tell it how many speakers to expect, and start from a clean recording.

Pick the right job

  • Diarize (POST /api/v1/speaker/diarize) returns a timeline of who spoke when. No audio files.
  • Extract (POST /api/v1/speaker/extract) returns one audio file per speaker, plus the timeline. Use it for interviews, podcasts and meetings where people take turns.
  • Separate (POST /api/v1/speaker/separate) pulls apart voices that talk at the same time, such as heavy crosstalk or a duet. Use it only when the voices truly overlap; for turn-taking, Extract gives better results.
Each takes a file upload or a url. Extract also takes an upload_id from POST /api/v1/uploads/presign, which is the way to send large files.

Start with a clean recording

  • One voice per microphone, close to the mouth, in a quiet room.
  • Remove music and loud background noise first with noise reduction or stem separation. Background sound can be mistaken for another speaker.
  • Send the original file rather than a heavily compressed copy.
  • A silent or undecodable file is refused before anything is charged.

Tell it how many speakers

The speaker count is the setting that matters most.
  • If you know it, set num_speakers. For a two-person interview, set num_speakers=2.
  • If you only know a range, set min_speakers and max_speakers on Extract. They are ignored when num_speakers is set.
  • Leave all three out to detect the count automatically.
  • Very short files with many speakers may come back with fewer speakers than you asked for.
Do: num_speakers=3 for a host and two guests. Don’t: leave the count out on a panel where two guests sound alike. Similar voices are the ones most likely to be merged. clustering_threshold on Extract is deprecated and has no effect; speakers are detected automatically. If you send it, the response includes a notice saying so. Use the speaker count instead.

Crosstalk on Extract

overlap_mode decides what happens where two people talk at once:
  • separate (the default) isolates each voice, so each track holds only its own speaker.
  • duplicate leaves the overlapping audio in every track it belongs to.
  • exclusive keeps it only in the main speaker’s track.

Separate: overlapping voices

  • num_voices accepts 2 to 4, but separation pulls apart two voices. With 3 or 4, the extra tracks can come back silent. Use num_voices=2.
  • mode: extract_vocals_first (the default) isolates the voices from music first, best for songs and anything with a backing track. voice_only is for speech with no music. An unknown mode returns an error.
  • model sets the quality: fast (the default) or high-quality, which separates more cleanly and takes longer. balanced is still accepted and runs as fast. An unknown value returns an error.
  • The output is made for clarity, for transcribing or review, not for broadcast-quality audio.

Transcripts

  • Set include_transcription=true on Extract or Separate to get a speaker-labeled transcript with timestamps. It does not change what the job costs.
  • That transcript works best for English and other major European languages. For other languages, or for accuracy tiers and language settings, run AudioTranscribe on each speaker’s file.

Repeats and retries

  • Sending the same file with the same options while your earlier job is still running returns that job, with duplicate_of: true, and does not charge again.
  • Failed jobs never count as repeats.
  • To re-run on purpose, pass force_rerun=true. It is charged as a new job. A matching job that started less than 30 minutes ago is still returned instead.

Limits

On the Free plan, a job can be up to 30 minutes and 500 MB. Paid plans allow longer files. Credits and plans: see audiopod.ai/pricing.