更新 PVC 音色样本

更新 PVC 音色样本:应用降噪、选择说话人、更改裁剪时间或文件名。

路径参数

voice_idstring必需
要使用的音色 ID。可通过 https://api.elevenlabs.io/v1/voices 列出所有可用音色。
sample_idstring必需

要使用的样本 ID

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
remove_background_noiseboolean可选默认为 false

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

selected_speaker_idslist of strings or null可选

用于 PVC 训练的说话人 ID。请确保在一次请求中发送所有要用于 PVC 训练的说话人 ID,因为最后一次请求会覆盖此前的请求。

trim_start_timeinteger or null可选

用于 PVC 训练的音频起始时间。时间应以毫秒为单位。

trim_end_timeinteger or null可选

用于 PVC 训练的音频结束时间。时间单位应为 ms

file_namestring or null可选

用于 PVC 训练的音频文件名称。

响应

成功响应

voice_idstring

音色的 ID。

错误

422
Unprocessable Entity Error