Voices
Generate Audio Sample
Generate an audio sample for a voice.
POST
/
v1
/
voices
/
{id}
/
sample
Headers
Your API key for authentication.
Path Parameters
The ID of the voice to generate the audio sample for, or it’s name (like “maya”).
Request Body
The text content to be spoken in the voice sample.
Character limit: 200
characters.
Alternate voice_settings
can be passed in to override the preset’s default settings.
The language of the text content. Default is ENG
.
Some other language codes: “ESP”, “GER”, “FRE”
Response
The generated audio file of the spoken text using the specified or overridden voice preset settings.