Skip to navigation

List similar voices

Returns a list of shared voices similar to the provided audio sample. If neither similarity_threshold nor top_k is provided, we will apply default values.

Headers

xi-api-keystringOptional

Query parameters

categoryenumOptional
Voice category used for filtering
Allowed values:
genderstring or nullOptional
Gender used for filtering
agestring or nullOptional
Age used for filtering
use_caseslist of strings or nullOptional

Use-case used for filtering

min_notice_period_daysinteger or nullOptional
Filter voices with a minimum notice period of the given number of days.
include_custom_ratesboolean or nullOptional

Include/exclude voices with custom rates

include_live_moderatedboolean or nullOptional

Include/exclude voices that are live moderated

owner_idstring or nullOptional
Filter voices by public owner ID

Request

This endpoint expects a multipart form containing an optional file.
audio_filefileOptional
similarity_thresholddouble or nullOptional
Threshold for voice similarity between provided sample and library voices. Values range from 0 to 2. The smaller the value the more similar voices will be returned.
top_kinteger or nullOptional

Number of most similar voices to return. If similarity_threshold is provided, less than this number of voices may be returned. Values range from 1 to 100.

Response

Successful Response
voiceslist of objects
The list of shared voices
has_moreboolean
Whether there are more shared voices in subsequent pages.
total_countintegerOptionalDefaults to 0
The total number of shared voices matching the query.
last_sort_idstring or nullOptional

Errors

422
Unprocessable Entity Error