generate

abstract suspend fun generate(request: TextToSpeechRequest): Audio(source)

Generates a complete audio response for request.

Throws

when a request field is invalid.

when ElevenLabs returns a non-successful HTTP response.

when no HTTP response can be obtained.

when the request exceeds a transport timeout.

when the response does not match the documented schema.