Sortformer 4-Speaker v2

SORTFORMER_4SPK_V2

Speaker diarization. Finds who spoke when in a recording of up to an hour with up to four speakers, and returns the speaker turns as JSON with start and end times.

Speech Recognitionspeech-recognitiondiarizationspeaker-turnscc-by-4.0Fine-tunable
Sortformer 4-Speaker v2: Speech Recognition model on Kainguru

About Sortformer 4-Speaker v2

Capabilities

  • Speaker turns — start, end and speaker of every stretch of speech, as JSON
  • Up to four speakers — numbered in the order they first speak; overlapping speech is reported as overlapping turns
  • Not tied to a language — it follows voices, not words (its training meetings are mostly English and Mandarin)
  • Long recordings — up to 60 minutes in one pass
  • Fine-tunable — train it on your own recordings with their speaker turns through the API

Good to know

  • Recordings up to 60 minutes and 1 GB, as WAV, MP3, FLAC, OGG, M4A, AAC or WebM. The model counts four speakers at most and gets less accurate with five or more; max_speakers reports only the first speakers to arrive.
  • The speakers are named speaker_0 to speaker_3 in the order they first speak, not by who they are; pair the turns with a transcript's timestamps to label the text.
  • Fine-tuning takes up to 2000 clips of 1 to 90 seconds, each with its turns as JSON ([{"start": 0.0, "end": 3.2, "speaker": "A"}, ...]; up to 500 turns and 4 speakers per clip), and trains the whole network for at most 20 epochs, 10,000 steps or 9 hours, whichever comes first.

Attribution

Streaming Sortformer Diarizer 4spk v2 by NVIDIA, released under the Creative Commons Attribution 4.0 International licence (CC BY 4.0, https://creativecommons.org/licenses/by/4.0/). Fine-tuned versions are changed from the original.

Sortformer 4-Speaker v2 inputs and output

NameTypeRequiredDefaultDetails
audiofileYes—The recording (WAV, MP3, FLAC, OGG, M4A, AAC or WebM), up to 60 minutes and 1 GB, sampled at 4 to 192 kHz with at most 8 channels.
Max 2048 characters · audio/wav, mpeg, flac, ogg, mp4, aac, webm
max_speakersintegerNo4Report at most this many speakers (the model counts up to 4, in order of arrival).
1–4

Output. JSON: {"num_speakers": 2, "segments": [{"start": 0.0, "end": 4.2, "speaker": "speaker_0"}]} in seconds; speakers are numbered in order of arrival and may overlap.

Run Sortformer 4-Speaker v2 with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=SORTFORMER_4SPK_V2" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "audio": "https://example.com/input.png",
    "max_speakers": 4
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "SORTFORMER_4SPK_V2",
        {
          "audio": "https://example.com/input.png",
          "max_speakers": 4
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune Sortformer 4-Speaker v2

You can fine-tune Sortformer 4-Speaker v2 on your own data and run the tuned model through the same API. Dataset: 2000 clips of 90 s and 50 MB at most (10 GB in all) as {"file": ..., "text": ...} items; text is a string of JSON, the speaker turns [{"start": 0.0, "end": 3.2, "speaker": "A"}], up to 500 turns and 4 speakers.

The steps are in the docs.

Sortformer 4-Speaker v2 pricing

Price per second: 0.006555 credits ($0.00006555). The price is shown again before every run; all prices are on the pricing page.

Licence and source

Parakeet TDT 0.6B v3: Speech Recognition model on Kainguru
Speech Recognition

Parakeet TDT 0.6B v3

Fast speech-to-text for 25 European languages with automatic language detection, punctuation and word timestamps.

Fine-tunable
Canary 1B v2: Speech Recognition model on Kainguru
Speech Recognition

Canary 1B v2

Speech-to-text and speech translation for 25 European languages. Transcribe a recording in its own language, or…

Fine-tunable
MOSS Transcribe Diarize: Speech Recognition model on Kainguru
Speech Recognition

MOSS Transcribe Diarize

Transcription with speaker labels and timestamps for meetings, calls and podcasts of up to 60 minutes in one pass, in…

Fine-tunable
VibeVoice ASR: Speech Recognition model on Kainguru
Speech Recognition

VibeVoice ASR

Transcription of up to 60 minutes of audio in one pass into speaker-labelled, timestamped segments, in 50+ languages…

Fine-tunable
Granite Speech 4.1 2B Plus: Speech Recognition model on Kainguru
Speech Recognition

Granite Speech 4.1 2B Plus

Speech-to-text in English, French, German, Spanish and Portuguese that can also label who is speaking and time every…

Fine-tunable
Distil-Whisper Large v3.5: Speech Recognition model on Kainguru
Speech Recognition

Distil-Whisper Large v3.5

Fast and accurate English speech-to-text for recordings up to an hour long, with optional timestamps.

Fine-tunable