Interface AudioStreamRequest

Request details to stream audio from text.

interface AudioStreamRequest {
    audioFormat?: AudioStreamFormat;
    input: string;
    language?: string;
    model?: VoiceModelName;
    options?: AudioSpeechRequestOptions;
    voiceId: string;
}

Properties

audioFormat?: AudioStreamFormat

The audio format of the synthesized speech.

"mp3"
input: string

The text to be synthesized, either SSML or plain text.

language?: string

The language code of the text. Read about the supported languages here.

"en-US"

The voice model to be used for the synthesis. Read about the supported models here.

Additional options for the synthesis.

voiceId: string

The voice ID to be used for the synthesis.