Skip to content

SpeechToTextHistoryObject

A stored speech-to-text transcription.

Example Usage

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

let value: SpeechToTextHistoryObject = {
  id: "<id>",
  object: "speech.transcription",
  text: "<value>",
  language: "<value>",
  confidence: 3762.12,
  model: "Wrangler",
  providerId: "<id>",
  filename: null,
  audioBytes: 464526,
  audioMimeType: "<value>",
  speakers: [
    {
      speaker: "<value>",
      text: "<value>",
    },
  ],
  streaming: true,
  metadata: {
    "key": "<value>",
    "key1": "<value>",
  },
  createdAt: 700793,
};

Fields

FieldTypeRequiredDescription
idstring✔️Unique identifier for the history item.
object"speech.transcription"✔️The object type, always 'speech.transcription'.
textstring✔️The transcribed text.
languagestring✔️The detected or specified language code.
confidencenumber✔️Confidence score from 0 to 1, when available.
modelstring✔️The transcription model used.
providerIdstring✔️The provider that produced the transcription.
filenamestring✔️Original filename of the input audio, when available.
audioBytesnumber✔️Size of the input audio in bytes.
audioMimeTypestring✔️MIME type of the stored input audio.
speakerscomponents.SpeakerSegment[]✔️Speaker diarization segments, when present.
streamingboolean✔️Whether the transcription came from the streaming WebSocket.
metadataRecord<string, any>✔️Arbitrary metadata stored with the item.
createdAtnumber✔️Unix timestamp (seconds) when the item was created.