Skip to content

TranscriptionResponse

Response from the transcription endpoint containing the transcribed text, detected language, confidence score, and optional speaker segments.

Example Usage

typescript
import { TranscriptionResponse } from "@meetkai/mka1/models/components";

let value: TranscriptionResponse = {
  text: "Hello, this is a sample transcription of the audio file.",
  language: "en",
  confidence: 0.95,
  speakers: [
    {
      speaker: "Speaker-1",
      text: "Hello, this is a sample transcription of the audio file.",
      confidence: 0.95,
      offsetMs: 0,
      durationMs: 2100,
    },
  ],
};

Fields

FieldTypeRequiredDescription
textstring✔️The transcribed text from the audio file
languagestringThe detected or specified language code in ISO-639-1 format (e.g., 'en', 'es', 'fr')
confidencenumberConfidence score from 0 to 1 where 1 indicates highest confidence in transcription accuracy
speakerscomponents.SpeakerSegment[]Speaker diarization segments, returned only when include_speaker_data is true.