跳到导航

列出相似音色

返回与提供音频样本相似的共享音色列表。如果未提供 similarity_threshold 和 top_k,将使用默认值。

请求头

xi-api-keystring可选

查询参数

categoryenum可选

用于筛选的音色类别。

允许的值:
genderstring or null可选

用于筛选的性别

agestring or null可选

用于筛选的年龄

use_caseslist of strings or null可选

用于筛选的使用场景。

min_notice_period_daysinteger or null可选

筛选最短通知期为指定天数的音色。

include_custom_ratesboolean or null可选

包含/排除采用自定义费率的音色

include_live_moderatedboolean or null可选

包含/排除经过实时审核的音色

owner_idstring or null可选

按公开所有者 ID 筛选音色

请求

This endpoint expects a multipart form containing an optional file.
audio_filefile可选
similarity_thresholddouble or null可选

所提供样本与声音库音色之间的相似度阈值。取值范围为 0 至 2。值越小,返回的音色越相似。

top_kinteger or null可选

要返回的最相似音色数量。若提供 similarity_threshold,返回的音色可能少于此数量。取值范围为 1 到 100。

响应

成功响应

voiceslist of objects

共享音色列表

has_moreboolean

后续页面中是否还有更多共享音色。

total_countinteger可选默认为 0

符合查询条件的共享音色总数。

last_sort_idstring or null可选

错误

422
Unprocessable Entity Error