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
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✔️ | Unique identifier for the history item. |
object | "speech.transcription" | ✔️ | The object type, always 'speech.transcription'. |
text | string | ✔️ | The transcribed text. |
language | string | ✔️ | The detected or specified language code. |
confidence | number | ✔️ | Confidence score from 0 to 1, when available. |
model | string | ✔️ | The transcription model used. |
providerId | string | ✔️ | The provider that produced the transcription. |
filename | string | ✔️ | Original filename of the input audio, when available. |
audioBytes | number | ✔️ | Size of the input audio in bytes. |
audioMimeType | string | ✔️ | MIME type of the stored input audio. |
speakers | components.SpeakerSegment[] | ✔️ | Speaker diarization segments, when present. |
streaming | boolean | ✔️ | Whether the transcription came from the streaming WebSocket. |
metadata | Record<string, any> | ✔️ | Arbitrary metadata stored with the item. |
createdAt | number | ✔️ | Unix timestamp (seconds) when the item was created. |