POST
/
v1
/
voices
/
{id}
/
sample

Headers

authorization
string
required

Your API key for authentication.

Path Parameters

id
string
required

The ID of the voice to generate the audio sample for, or it’s name (like “maya”).

Request Body

text
string
required

The text content to be spoken in the voice sample.

Character limit: 200 characters.

voice_settings
object

Alternate voice_settings can be passed in to override the preset’s default settings.

language
string

The language of the text content. Default is ENG.

Some other language codes: “ESP”, “GER”, “FRE”

Response

sample
audio

The generated audio file of the spoken text using the specified or overridden voice preset settings.