音频模型接口参考音色重命名音色

重命名音色

修改当前账号音色的显示名称。此接口只接受控制台登录凭证。

认证

控制台登录凭证:Authorization: Bearer <登录凭证>。此接口不接受 API Key。

示例中的凭证为占位值,请替换后在服务器端运行。

代码示例

curl -X PATCH 'https://shixux.com/api/voice-assets/asset_id_example' \  -H 'Authorization: Bearer login_credential_placeholder' \  -H 'Content-Type: application/json' \  -d '{"display_name":"example"}'
{  "id": "example",  "display_name": "example",  "original_filename": "example",  "size_bytes": 1,  "uploaded_at": "2026-10-06T10:00:00Z",  "retained_until": "2026-10-06T10:00:00Z"}

路径参数

asset_id*Asset Id

请求体

application/json
  1. body
display_name*Display Name
长度1 <= length <= 80

响应体

请求成功

application/json
  1. response
id*Id
display_name*Display Name
original_filename*string|null
size_bytes*|

音色文件大小(字节)。

uploaded_at*Uploaded At
格式date-time
retained_until*|

素材或结果文件的保留截止时间。下载地址过期后可重新获取。

permanent?boolean
source?string
可选值"uploaded""designed""preset"
preset_id?string

该音色对应的预置音色 ID;不是由预置音色得到的音色不返回此字段。

description?string
duration_seconds?number

本页目录