Skip to content

TextToSpeechHistoryObject

A stored text-to-speech generation.

Example Usage

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

let value: TextToSpeechHistoryObject = {
  id: "<id>",
  object: "speech.tts",
  text: "<value>",
  language: "<value>",
  detectedLanguage: "<value>",
  model: "2",
  providerId: "<id>",
  format: "<value>",
  audioBytes: 537031,
  characters: 273565,
  streaming: true,
  metadata: {
    "key": "<value>",
  },
  createdAt: 239871,
};

Fields

FieldTypeRequiredDescription
idstring✔️Unique identifier for the history item.
object"speech.tts"✔️The object type, always 'speech.tts'.
textstring✔️The input text that was synthesized.
languagestring✔️The requested language ('auto' or an ISO 639-1 code).
detectedLanguagestring✔️The language actually used for synthesis.
modelstring✔️The TTS model used.
providerIdstring✔️The provider that produced the audio.
formatstring✔️Audio format of the stored output (wav, mp3, or pcm).
audioBytesnumber✔️Size of the generated audio in bytes.
charactersnumber✔️Number of characters in the input text.
streamingboolean✔️Whether the audio was produced via the streaming endpoint.
metadataRecord<string, any>✔️Arbitrary metadata stored with the item.
createdAtnumber✔️Unix timestamp (seconds) when the item was created.