Guides
A correct speaker label in transcription
The speaker on each line should be an id you already know. Pass that id on the connection token. Diarization is the fallback when the only recording is one mixed file.
A correct speaker label in a transcription is the identity of the person who said the line. You get it when each person's microphone is transcribed on its own and you already told the system who that microphone belongs to. A diarization pass over one mixed recording invents labels such as Speaker 1, and those labels swap when voices are similar or people talk at the same time.
On Synento the speaker field is the user id you put on that person's connection token. Speech-to-text runs on that microphone's audio. It does not choose the name. A Zoom or Meet recording that mixed everyone into one file does not have separate microphones, so this path does not apply to that file.
The label is decided before anyone joins, then read back after the call. Display names stay in your app. The transcript stores the id.
1. What diarization gets wrong
Diarization takes one audio file and cuts it into turns. The model groups turns into clusters, and the clusters come back as Speaker 1, Speaker 2, and so on. Nothing in the file says that Speaker 1 is a particular person. You map the clusters afterwards, by listening, or you leave the numbers in place.
Ordinary meetings break the clusters. Two people who sound alike get merged. Someone who talks over another person is split across both labels, or dropped. A short "yes" or "go on" often sticks to the previous speaker's turn. A late joiner can become a new speaker number even when they already spoke. A single mixed track cannot keep those turns straight.
Zoom cloud recordings and Google Meet recordings ship their own transcripts, with their own labels. This guide does not restate those products. If the recording you hold is one mixed file, use the transcript that product already made, or run diarization and plan time to correct it. Separate microphones let you skip the guess.
2. What the label has to be
A speaker label you can trust is stable, unique inside the call, and already meaningful in your database. A user id or account id works. A display name works until someone renames themselves, and then last quarter's transcript and today's disagree.
You choose the string before the person joins. The transcript does not look up an email, and it does not edit the string when the job finishes. Store the id. Map it to a name such as Alice Chen when you render a page. Keep that map with the rest of the profile, so a name change does not rewrite the recording.
3. Put the id on the connection token
createConnectionToken takes userId. That value is the participant id for the live call and the speaker on every cue from that person's microphone. Mint the token on your server. The browser receives only the short-lived token.
Omit userId, or pass a blank string, and the Node SDK sends anonymous. A second person who joins with that same id does not sit beside the first. The server treats the same user id as a reconnect and replaces the open connection. The transcript then has one speaker, anonymous, for the audio recorded under that id. Pass a different id for each person before anyone joins.
import { SynentoClient } from '@synento/node'
// Reads SYNENTO_API_KEY and SYNENTO_API_URL. Server-side only.
const synento = new SynentoClient()
// userId is stored as the speaker on every line this person says.
// Use a stable id from your own user store, not a display name.
export async function tokenFor(sessionId: string, userId: string) {
const token = await synento.createConnectionToken(sessionId, { userId })
return { expiresIn: token.expiresIn, token: token.accessToken }
}4. Read the speaker field after the call
Transcription runs after the session has ended. Turn it on for every session in the project with PUT /v1/projects/:id/transcription, or request one finished session with requestTranscript. Asking again is safe. The Node SDK sets isReused when a run is already queued, running, or finished. A project with automatic transcripts waits a few minutes after the session ends, so people who drop and rejoin are usually one run.
getTranscript returns cues while the job is still going, and the full set once status is ready. Each cue has speaker, lang, text, start_ms and end_ms. start_ms counts milliseconds from origin_ts, the start of the recording, which is also where an MP4 export starts. Wait for ready, or for the transcript.ready webhook, before you treat the list as complete. failed sets error_code to unsupported_language, provider_rejected, processing_failed, unavailable, or allowance when the Free plan's minutes are used up.
import { SynentoClient } from '@synento/node'
const synento = new SynentoClient()
// Idempotent. isReused means a run was already queued, running or finished.
const state = await synento.requestTranscript(sessionId, { language: 'auto' })
const transcript = await synento.getTranscript(sessionId)
if (!transcript || transcript.status !== 'ready') {
throw new Error(`transcript is ${transcript?.status ?? 'missing'} (request ${state.status})`)
}
for (const cue of transcript.cues) {
// cue.speaker is the user id passed to createConnectionToken.
console.log(`${cue.speaker} [${cue.lang}] ${cue.start_ms}-${cue.end_ms} ${cue.text}`)
}5. The same label in VTT, SRT and text
format=vtt writes a WebVTT voice span with the speaker id in front of the words. format=srt prefixes each cue with the speaker and a colon. format=txt groups a run of the same speaker into one paragraph, and starts a new paragraph when the speaker changes. lang=es keeps one language. The speaker string is the same in JSON and in all three files.
Replay in @synento/player shows the same cues as captions, one caption stream per language. The speaker id is on the cue. A player that draws captions without names can read speaker and print it. The file formats already include it, so a subtitle file you hand to someone else still says who spoke.
# WebVTT voice span: <v alice>Thanks for joining.
curl -s "https://api.synento.com/v1/sessions/$SESSION_ID/transcript?format=vtt" \
-H "Authorization: Bearer $SYNENTO_API_KEY"
# Plain text. A new paragraph starts each time the speaker changes.
curl -s "https://api.synento.com/v1/sessions/$SESSION_ID/transcript?format=txt" \
-H "Authorization: Bearer $SYNENTO_API_KEY"6. When the label is wrong
There is no rename. Cues keep the user id they were written with. A later request in the same language transcribes only audio that was not in the previous run. It does not relabel old lines. Asking for a different language than the first run returns 409.
If the id was a mistake, map it when you display the transcript, or remove the person. DELETE /v1/sessions/:id/participants/:userId redacts that participant. Their audio and video leave the recording, and their lines leave the transcript. An MP4 exported before the redact still contains them until you delete that export and export again.
The same id is what a reconnect uses. Someone who refreshes the page needs a token with the same user id. A new random id comes back as a second speaker, and the first connection is dropped. Mint tokens from your user table, not from a value generated on each page load.
7. One microphone, two people
The label follows the track. Two people sharing a laptop are one microphone and one user id, and every line is that id. Synento does not split them. Diarization on that single track is the tool for that case, and you run it on audio you have taken out yourself. The transcript API has no diarization flag.
The useful case is the other one. When each person publishes their own microphone, overlap stays intact. Alice's words and Bob's words can share timestamps, each with their own speaker. A mixed-file transcript has to pick one of them or glue the words together.
Language does not change the speaker. auto detects each participant's language from their own speech. multi is for a person who switches language mid-sentence. A BCP-47 tag such as en or pt-BR transcribes everyone in that language. The first successful run locks the setting. speaker stays the user id in every one of those modes.
Common questions
Can I correct a speaker label after the transcript is ready?
Not on the cue. Map the user id to a name in your app, or redact that participant with DELETE /v1/sessions/:id/participants/:userId. A later transcript request does not rewrite old speaker values.
Why does the transcript say anonymous?
The connection token was minted without a user id. The Node SDK sends anonymous in that case. A second join with the same id replaces the first connection, so the audio is one speaker. Mint the token with the real id before the next call.
Does the language setting change who is speaking?
No. lang on a cue is the language of the words. speaker is the user id. auto detects language per participant. multi labels words when one person switches language. The speaker field stays the id you passed.
Does a speaker label cost extra?
No. Transcription is billed per minute of speech, with silence excluded, summed across participants. Free and pay-as-you-go each include 60 minutes a month. Past that, Free stops and pay-as-you-go is $0.006 a minute. speech_seconds on the transcript is what that run billed.
More guides
- Record a video call without a recording serverThe live streams are the recording. Create a session, publish from the browser, then replay or export, with no recording pipeline to run or pay for separately.
- Verify media actually arrivedA participant can join while publishing nothing, and dashboards still look green. The session manifest is the ground truth. A track with a non-null start_ts carried real media.
- Add live video to an AI agent via the MCP serverA remote MCP server at api.synento.com/mcp takes your agent from nothing to a verified integration: projects, keys, sessions, tokens, and manifest proof.
- WebCodecs vs WebRTC for recorded callsIf the call is the product, use WebRTC. If the recording of the call is the product, the WebCodecs relay trade is worth understanding.
- Async video messages and standupsAsync video is mostly replay. Create one session per standup, let the team watch on their own time through expiring links, and export only what must be kept.
- Signed webhooks for recording-ready workflowsWebhooks tell your pipeline when the recording is ready, and when a transcript is. Verify the HMAC signature on every delivery, then read transcript.ready or run your own transcription.
- Restricted keys and short-lived connection tokensTwo credentials, two jobs. A restricted key identifies your server to the API; a connection token admits one participant to one session for about an hour.
- How to access Google meeting recordingsThe file is in the meeting organizer's Drive, in the Google Meet folder, inside a subfolder for that meeting. The organizer and whoever started the recording also get an email. Calendar gets the link when recording starts on time.
- Zoom meeting recording softwareA computer recording stays on the machine that recorded it. A cloud recording shows up for the host under Recordings and Transcripts. Embedding a Zoom meeting keeps you in that system. A custom session is a different product.
Record the calls your product runs on.
Sign up for a free account. Replay, MP4 export and post-call transcripts are included, and a coding agent can set the integration up from llms.txt.