Skip to main content

Transcription

The transcription.realtime resource runs live transcription on a room's active session, with an optional post-session summary. (To transcribe a recording after it has completed, set transcription on the recording. See Recordings.)

Start transcription​

const t = await client.transcription.realtime.start(roomId, {
language: "en-US",
summary: { enabled: true, prompt: "Summarize decisions and action items." },
});

Options: language, modelId, webhookUrl, summary.

Stop transcription​

The transcription is identified by its room id.

await client.transcription.realtime.stop(roomId);

Get and list​

await client.transcription.realtime.get(transcriptionId);
await client.transcription.realtime.list();

list supports a status filter and pagination only, not room id.

The transcription object​

Returned by transcription.realtime.start and get, and as the items of a transcription.realtime.list page.

FieldTypeDescription
idstringTranscription id.
roomIdstringRoom the transcription runs in.
statusstringTranscription status.
transcriptionFilePathsobjectOutput file URLs keyed by format (e.g. txt).
summarizedFilePathsobjectSummary file URLs keyed by format (e.g. txt).
startstringStart time (ISO-8601).
endstringEnd time, null while running.

Got a Question? Ask us on discord