POST
/
v1
/
voice-generation
/
generate-voice
This API is deprecated. Please use the new Text to Voice API.

Headers

xi-api-key
string

Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.

Body

application/json
gender
enum<string>
required

Category code corresponding to the gender of the generated voice. Possible values: female, male.

Available options:
female,
male
accent
string
required

Category code corresponding to the accent of the generated voice. Possible values: american, british, african, australian, indian.

age
enum<string>
required

Category code corresponding to the age of the generated voice. Possible values: young, middle_aged, old.

Available options:
young,
middle_aged,
old
accent_strength
number
required

The strength of the accent of the generated voice. Has to be between 0.3 and 2.0.

text
string
required

Text to use for generating the voice preview. Text length has to be between 100 and 1000.

Required string length: 100 - 1000

Response

200 - audio/mpeg

The response is of type file.