interface TTSOptions {
    apiKey?: string;
    baseURL: string;
    bitRate: number;
    bufferCharThreshold: number;
    deliveryMode?: DeliveryMode;
    encoding: Encoding;
    language?: string;
    maxBufferDelayMs: number;
    model: string;
    sampleRate: number;
    speakingRate: number;
    temperature: number;
    textNormalization?: TextNormalization;
    timestampTransportStrategy?: TimestampTransportStrategy;
    timestampType?: TimestampType;
    tokenizer?: tokenize.SentenceTokenizer;
    voice: string;
    wsURL: string;
}

Properties

apiKey?: string
baseURL: string
bitRate: number
bufferCharThreshold: number
deliveryMode?: DeliveryMode

Controls output variation on inworld-tts-2 only.

encoding: Encoding
language?: string

BCP-47 language tag specifying the language the voice should speak in.

maxBufferDelayMs: number
model: string
sampleRate: number
speakingRate: number
temperature: number
textNormalization?: TextNormalization
timestampTransportStrategy?: TimestampTransportStrategy
timestampType?: TimestampType
voice: string
wsURL: string