Skip to content

TextToSpeechRequest ​

Request parameters for text-to-speech conversion with language selection.

Example Usage ​

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

let value: TextToSpeechRequest = {
  text: "Hello, welcome to our text-to-speech service.",
  language: "en",
};

Fields ​

FieldTypeRequiredDescriptionExample
textstring✔️Input text to convert to speech
languagecomponents.Language➖Language code: 'auto' for automatic detection, or ISO 639-1 language codes
modelstring➖TTS model identifier. Defaults to 'auto', which selects the default provider. Registry-resolvable ids dispatch to the matching provider.auto
storeboolean➖When true, persist this generation (input text, parameters, and the generated audio) to text-to-speech history. Defaults to false.