Voices
Generate Audio Sample
Generate an audio sample for a voice.
POST
/
v1
/
voices
/
{id}
/
sample
Headers
authorization
string
requiredYour API key for authentication.
Path Parameters
id
string
requiredThe ID of the voice to generate the audio sample for, or it’s name (like “maya”).
Request Body
text
string
requiredThe 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.