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.
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, setnum_speakers=2. - If you only know a range, set
min_speakersandmax_speakerson Extract. They are ignored whennum_speakersis 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.
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.duplicateleaves the overlapping audio in every track it belongs to.exclusivekeeps it only in the main speaker’s track.
Separate: overlapping voices
num_voicesaccepts 2 to 4, but separation pulls apart two voices. With 3 or 4, the extra tracks can come back silent. Usenum_voices=2.mode:extract_vocals_first(the default) isolates the voices from music first, best for songs and anything with a backing track.voice_onlyis for speech with no music. An unknownmodereturns an error.modelsets the quality:fast(the default) orhigh-quality, which separates more cleanly and takes longer.balancedis still accepted and runs asfast. 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=trueon 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.
