编辑音色

编辑你创建的音色。

路径参数

voice_idstring必需

要使用的音色 ID。可使用 获取音色 端点列出所有可用音色。

请求头

xi-api-keystring可选

请求

This endpoint expects a multipart form with multiple files.
namestring必需

用于识别此音色的名称。将显示在网站下拉菜单中。

filesfiles可选
Audio files to add to the voice
remove_background_noiseboolean可选默认为 false

设定后,将使用我们的人声分离模型去除音色样本中的背景噪音。如果样本不含背景噪音,可能会降低质量。

descriptionstring or null可选

音色说明。

labelsmap from strings to strings or string or null可选

音色标签。键可以是 language、accent、gender 或 age。

moderate_metadataboolean可选默认为 false

音色名称和描述变更时,运行同步 LLM 审核。仅当该用户启用 voice_library_metadata_moderation 功能标记时才生效。

响应

成功响应

statusstring

编辑音色请求的状态。如果请求成功,状态将为 ‘ok’。否则将返回状态为 500 的错误消息。

错误

422
Unprocessable Entity Error