Automatic speaker separation requires a diarization service that returns time-aligned speaker labels for each transcript segment; formatting transcript text with names is not the same operation. The safest integration treats diarization as a distinct processing stage, stores its labels as session-scoped identifiers, and keeps identity mapping outside the audio pipeline. MiniMax provides speaker diarization through asr-1.0 at POST /v1/speech_to_text: choose response_format=verbose_json for speaker-labelled segments and timestamps.
A meeting application can still use a separate authorized diarization service when one is available, or assign labels manually or through another governed transcription workflow. Its own responsibilities are to define the segment contract, preserve timing information, link each source recording to its transcript, and prevent generic labels from being displayed as verified participant identities. These responsibilities remain useful whether the diarization result comes from an external service, an approved internal model, or a human-reviewed transcript.
The implementation below covers the application contract, archive structure, response normalization, testing, rollout and identity controls. It uses MiniMax ASR for recognition while keeping participant identity confirmation in the application.
1. Define the integration contract
Begin by separating three related operations:
- Speaker diarization determines who is speaking at each point in an audio session. The output is a label such as a generic speaker identifier, not a legal or organizational identity.
- Speaker identification maps an audio segment to a known person. That requires an additional identity system and is not implied by a diarization label.
- Transcript formatting turns recognized speech into readable text. It may include timestamps and speaker labels, but formatting alone does not create speaker separation. This distinction prevents an integration from presenting an arbitrary label as a verified attendee name. A meeting transcript can correctly state that “Speaker 2” spoke during a particular interval even when the application cannot determine that this is the project manager. Identity mapping should therefore occur in a separate table or service, keyed by the meeting session and the returned label. MiniMax ASR accepts audio through the file multipart field. verbose_json includes n_speakers and segments with speaker, start, end and text; these labels do not identify people by name. This output mode cannot be combined with stream=true.
Before selecting any platform endpoint for this workflow, inspect the applicable regional API reference and confirm that it exposes the required input format, response fields, authentication method and limits. If the relevant functionality is not documented there, keep diarization in a separate service and use the platform only for a separately supported operation, such as summarizing an already diarized and authorized transcript.
Use an API key only in the integration environment’s secret store. Send it in the authentication header required by the documented API, restrict it to the service identity that needs it, and do not place it in source code, logs, prompts or meeting-record filenames. A diarization request should send one authorized meeting recording—or an approved segment—to the service that explicitly documents speaker-label output.
2. Organize existing recordings before adding speech processing
If the team already has a collection of meeting recordings, establish a stable file and metadata structure before launching a large transcription job. This reduces the risk that the same recording is processed under multiple names or that its transcript loses the relationship to the original source.
A practical archive uses one record per meeting asset, with fields such as:
| Field | Purpose |
|---|---|
meeting_id |
Stable application identifier for the session |
object_key |
Storage location of the original recording |
media_format |
Format used when the file was stored |
duration |
Recorded length, where available |
consent_or_access_reference |
Reference to the applicable access policy |
transcription_status |
State of the processing operation |
transcript_asset_id |
Reference to the stored transcript result |
processed_at |
Operational timestamp for the processing run |
Keep the original recording read-only during processing. Write transcription results to a separate object or database record so that a failed response cannot damage the source file. The application should also use an idempotency key, such as a hash derived from the file identity and the transcription configuration. When a job is retried, the same key should prevent accidental duplicate billing or duplicate transcript records.
For an existing corpus, start with a small representative set rather than the entire collection. Select material that covers the operating conditions relevant to the team: clear turn-taking, interruptions, several people in one room, a remote meeting with compressed audio, and a recording with substantial background noise. Remove or mask unnecessary content before sending samples for evaluation, while retaining enough speech to assess whether segmentation is useful.
Store the original timestamp basis alongside the API response. If the API returns timestamps relative to the submitted audio, keep that basis explicit. Do not combine offsets from different sources without recording how they were calculated. A transcript segment that says the correct words but points to the wrong interval is not adequate for editing, review or downstream indexing.
3. Implement the transcription workflow
Build the workflow in ordered stages so that each stage has an observable result.
Stage 1: Submit an authorized recording
The ingestion service reads the meeting record, confirms that the file may be processed, and sends the audio through a documented diarization request. Keep the request mapping explicit: each input parameter should correspond to a known field in the selected service’s reference. Avoid passing configuration values merely because a generic SDK accepts them.
The request should carry enough stable context to make the resulting transcript auditable, without placing unnecessary personal information into unrelated parameters. The storage record should retain the source object key, selected configuration, request identifier and processing state.
Stage 2: Normalize the response
Parse the response according to its documented schema rather than extracting speaker information from rendered text with a regular expression. A compatible response must associate each transcript segment with timing information and a speaker label. Where labels are absent or the schema differs, treat that response as incompatible with the diarization requirement instead of inferring speakers from punctuation or formatting.
Store the response in two layers:
- Raw response: retained for diagnosis and reproducibility, subject to the same access controls as other meeting data.
- Normalized segments: records containing the transcript text, start and end positions, source label and meeting identifier. A normalized segment can use this logical shape:
{
"meeting_id": "meeting_asset_identifier",
"segment_index": 0,
"start_time": 0.0,
"end_time": 2.4,
"speaker_label": "speaker_label_from_response",
"text": "Transcript segment text"
}
The exact response field names should follow the current API documentation; the example illustrates the application’s storage layer rather than a guaranteed API schema.
Stage 3: Build a session-level speaker map
Group segments by meeting_id and preserve their time order. Within that session, map each distinct returned label to an application-level participant record. A practical structure contains:
- The opaque label returned for the session.
- The label’s first and last appearance in the transcript.
- The number and total duration of assigned segments.
- A separate, optional link to a verified participant identity.
- The confidence or review state required by the application. Do not reuse a speaker label across meetings. A label such as “Speaker 1” may refer to different people in different sessions, so persistent identity belongs in the meeting-to-participant mapping, not in the raw transcription label. ### Stage 4: Generate readable and structured outputs Create two views from the same normalized segments. The readable transcript can show each speaker with timestamps and text. The structured view can support search, meeting summaries, action-item extraction or topic analysis. Both views should reference the same segment records so that manual corrections do not diverge. If a user corrects a speaker label, record that correction separately from the model output. This makes it possible to distinguish an API result from a human decision and to evaluate which conditions produce inaccurate diarization. ## 4. Test diarization on observable criteria A successful request is not proof that speaker separation is useful. Evaluate the transcript against the recording using criteria that the team can apply consistently. Use a prepared reference sheet for each evaluation meeting. It records the expected turn boundaries, major interruptions, the number of active speakers and any periods with uncertain attribution. The human reviewer then checks the API result for:
- Boundary alignment: Does each labeled segment correspond to the actual utterance interval?
- Switch detection: Does the label change when a different person begins speaking?
- Single-speaker stability: Does the label avoid changing unnecessarily during a sustained turn?
- Group behavior: Does a label remain consistent when several participants share one microphone?
- Noise resilience: Do coughs, music or background speech create spurious speaker changes?
- Timestamp integrity: Can the transcript be aligned reliably with the source recording? Do not convert these observations into an unsupported general accuracy percentage. If the team calculates an internal measure, state the dataset, metric definition, recording conditions and treatment of ambiguous segments alongside the result. Small review sets can reveal implementation defects, but they do not establish performance for every meeting environment. After integration and authentication, call the relevant MiniMax Open Platform language API with a sanitized transcript that already contains speaker labels and ask for a concise meeting summary grouped by those labels, then check that each summary item remains attached to the intended speaker segments. A useful acceptance rule is to release the pipeline to a limited set of recordings only when the response consistently contains the documented speaker field, the normalized segments preserve timing information, and the application does not present a diarization label as a verified person. Problems involving the API request or response schema should fail visibly rather than silently falling back to unlabeled text. ## 5. Roll out gradually and retain a rollback path For a new integration, use a staged rollout rather than sending an entire meeting archive immediately. A controlled sequence is:
- Process one representative recording and compare its segments with the reference sheet.
- Process a small set of recordings across different audio conditions.
- Run the workflow in parallel with the existing transcript process, without changing the system of record.
- Correct storage mappings and application rules based on the observed failures.
- Increase the processing scope only after the acceptance criteria remain satisfied. The cut-over window should begin only after authentication, authorization, secret handling and storage mappings are working. Existing recordings can remain untouched while new transcripts are validated. If the organization needs a replacement transcript format, keep the old format readable until the new output has passed review. Use observable rollback triggers. Examples include a missing speaker-label field, segments that cannot be aligned with the source recording, duplicate records created for one source file, or an application display that maps a generic label to an unverified identity. Rollback should stop new jobs and restore the last accepted transcript format; it should not delete the original recordings or overwrite corrected records. For large archives, add bounded concurrency and retry handling. Retries should preserve the same idempotency key, while permanent authentication, authorization or invalid-input errors should move to a visible exception path. Monitor request status, processing duration, output size, segment count and the proportion of records without a speaker field. These operational signals reveal whether the integration is behaving consistently even when semantic accuracy still requires human review. ## 6. Apply human judgement where identity is involved Automated diarization can answer which labeled voice spoke during an interval. It cannot, by itself, establish that a label belongs to a named employee, that a confidential statement was correctly captured or that an action item should be assigned. Keep these decisions outside the transcription endpoint. A human reviewer should decide whether a segment is materially wrong, whether two labels should be merged because they refer to the same person, or whether a diarization label should be linked to a verified participant record. Use the application’s editing interface for that judgment and preserve the original labels. If the distinction between participant identity and voice activity affects an important workflow, obtain the required authorization before adding personal identity data to the transcript store. This boundary also affects privacy controls. Speaker labels reduce the need to insert names into every segment, but the meeting audio and transcript can still reveal personal information. Apply access controls to both the original object and every derived transcript or speaker map. Record the applicable retention period, deletion behavior and audit events in the application rather than assuming that an API response inherits the source file’s controls. ## 7. Choose the model and endpoint from current regional documentation The model choice should follow the target region’s current documentation rather than a copied identifier from an old integration. Confirm all of the following together:
- The model or endpoint is currently listed for the intended region.
- It accepts the meeting recording format used by the archive.
- It documents the required speaker-diarization behavior and response fields.
- Its input limits are compatible with the planned recording chunks.
- Its authentication, billing and error behavior fit the deployment. Use the MiniMax Open Platform console for account access and the speech-to-text guide for the request contract. Split recordings longer than 500 seconds or larger than 50 MB before submission, and retain each chunk’s original time offset. ## 8. Practical boundaries and conclusion This workflow applies when the application needs time-aligned speaker groups from existing meeting recordings and the selected ASR response provides the required segments. It does not establish legal names, authenticate participants, or replace human review in ambiguous recordings. It is also unnecessary when the application only needs a single undifferentiated transcript or the organization lacks a way to store and protect meeting-derived data.
A manageable next task is to select one permitted recording with two or more known speaker changes, define its expected segment boundaries, and run one end-to-end diarization request through authorization, normalization and speaker-map storage. The result should produce a readable transcript and a structured segment list without introducing personal names into the generated labels.
Top comments (0)