Save Voice from Preview

POST
/v1/text-to-voice/create-voice-from-preview

Add a generated voice to the voice library.

Request

This endpoint expects an object.
voice_namestringRequired

Name to use for the created voice.

voice_descriptionstringRequired>=20 characters<=1000 characters

Description to use for the created voice.

generated_voice_idstringRequired

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.

labelsmap from strings to stringsOptional

Optional, metadata to add to the created voice. Defaults to None.

played_not_selected_voice_idslist of stringsOptional

List of voice ids that the user has played but not selected. Used for RLHF.

Response

Successful Response

voice_idstring
namestringOptional
sampleslist of objectsOptional
categoryenumOptional
fine_tuningobjectOptional
labelsmap from strings to stringsOptional
descriptionstringOptional
preview_urlstringOptional
available_for_tierslist of stringsOptional
settingsobjectOptional
sharingobjectOptional
high_quality_base_model_idslist of stringsOptional
safety_controlenumOptional
voice_verificationobjectOptional
permission_on_resourcestringOptional
is_ownerbooleanOptional
is_legacybooleanOptional
is_mixedbooleanOptional
created_at_unixintegerOptional