查询标准音色分页列表

更新时间:2026-07-21 08:25:22LLM 副本以 Markdown 格式查看下载 PDF

本文介绍查询标准音色分页列表的 API。

接口描述

分页查询标准音色列表。

接口地址

GET: /v1.0/cloud/agent/ai/timbre/b/devices/{device_id}/market-timbres

请求参数

参数名类型参数位置是否必填说明
device_idStringpathtrue设备 ID
tagStringqueryfalse音色标签
key_wordStringqueryfalse音色名称
langStringquerytrue语言
page_noIntegerquerytrue页码,从 1 开始
page_sizeIntegerquerytrue每页数量

返回参数

参数名类型说明
codeInteger响应码(详情见错误码章节),成功时为空
successBoolean是否成功:
  • true:成功
  • false:失败
msgString请求失败的信息,成功时为空
tLong返回时间戳,13 位
resultList返回结果

result 说明

参数名类型说明
voice_idString音色 ID
voice_nameString音色名称
desc_tagsList描述标签列表
support_langsList支持的语种列表
speedString默认语速
demo_urlString示范音频的 URL

请求示例

GET: /v1.0/cloud/agent/ai/timbre/b/devices/abc123/market-timbres?tag=gentle&key_word=Alice&lang=en&page_no=1&page_size=20
{
  "path": {
    "device_id": "abc123"
  },
  "query": {
    "tag": "gentle",
    "key_word": "Alice",
    "lang": "en",
    "page_no": 1,
    "page_size": 20
  }
}

返回示例

{
    "msg": null,
    "code": null,
    "result": [
        {
            "voice_id": "voice_001",
            "demo_url": "https://example.com/demo.mp3",
            "support_langs": [
                "en",
                "zh"
            ],
            "voice_name": "Alice",
            "speed": "1.0",
            "desc_tags": [
                "gentle",
                "warm"
            ]
        }
    ],
    "t": 1573441137000,
    "success": true
}

错误码

参考 错误码