Skip to content

TextToSpeechStreamingRequest ​

Request parameters for streaming text-to-speech conversion with language selection and format options.

Example Usage ​

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

let value: TextToSpeechStreamingRequest = {
  text: "<value>",
};

Fields ​

FieldTypeRequiredDescriptionExample
textstring✔️Input text to convert to speech
languagecomponents.TextToSpeechStreamingRequestLanguage➖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.
formatcomponents.Format➖Audio output format: 'mp3' for MPEG audio (default), or 'pcm' for uncompressed PCM/WAV (24kHz, 16-bit, mono)