Text to Voice
Save Voice from Preview
Add a generated voice to the voice library.
POST
/
v1
/
text-to-voice
/
create-voice-from-preview
Headers
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
Name to use for the created voice.
Description to use for the created voice.
Required string length:
20 - 1000
The generated_voice_id to create, call POST /v1/voice-generation/generate-voice and fetch the generated_voice_id from the response header if don't have one yet.
Optional, metadata to add to the created voice. Defaults to None.
List of voice ids that the user has played but not selected. Used for RLHF.
Response
200 - application/json
Available options:
generated
, cloned
, premade
, professional
, famous
, high_quality
Available options:
NONE
, BAN
, CAPTCHA
, CAPTCHA_AND_MODERATION
, ENTERPRISE_BAN
, ENTERPRISE_CAPTCHA
Was this page helpful?