SpeechRequestBuilder

A speech request builder.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The text to generate audio for. The maximum length is 4096 characters.

Link copied to clipboard

One of the available TTS models: tts-1 or tts-1-hd

Link copied to clipboard

The format to audio in.

Link copied to clipboard

The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default.

Link copied to clipboard
var voice: Voice?

The voice to use when generating the audio

Functions

Link copied to clipboard

Builds and returns a SpeechRequest instance.