向 PVC 音色添加样本

为 PVC 音色添加音频样本

路径参数

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

请求头

xi-api-keystring可选

请求

This endpoint expects a multipart form with multiple files.
filesfiles必需
Audio files used to create the voice.
remove_background_noiseboolean可选默认为 false

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

响应

成功响应

sample_idstring可选

样本的 ID。

file_namestring可选

样本文件名称。

mime_typestring可选

样本文件的 MIME 类型。

size_bytesinteger可选

样本文件大小,单位为字节。

hashstring可选

示例文件的哈希值。

duration_secsdouble or null可选
remove_background_noiseboolean or null可选
has_isolated_audioboolean or null可选
has_isolated_audio_previewboolean or null可选
speaker_separationobject or null可选
trim_startinteger or null可选
trim_endinteger or null可选

错误

422
Unprocessable Entity Error