Options for the Speechify TTS.

interface TTSOptions {
    apiKey?: string;
    baseUrl: string;
    language?: string;
    loudnessNormalization?: boolean;
    model: string;
    sentenceTokenizer: tokenize.SentenceTokenizer;
    textNormalization?: boolean;
    voiceId: string;
}

Properties

apiKey?: string

Speechify API key. Defaults to $SPEECHIFY_API_KEY.

baseUrl: string

Base URL of the Speechify API.

language?: string

Language of the input as a BCP-47 tag, such as en-US. Defaults to the voice's locale.

loudnessNormalization?: boolean

Normalize loudness to a standard level. Adds a little latency.

model: string

Synthesis model.

sentenceTokenizer: tokenize.SentenceTokenizer

Splits the input of TTS.stream into sentences, which are synthesized one by one.

textNormalization?: boolean

Expand numbers, dates and similar into words before synthesis. Adds a little latency.

voiceId: string

Voice to speak with. It must support TTSOptions.model; see GET /v1/voices.