列出音色并选择兼容组合

GET /v1/audio/voices

生成播报前先列出音色。请选择 available: true 的音色,并检查各模型的 compatibility 列表;可用不等于对每个播报模型都兼容。

指南与示例播报与声音库全部接口

响应

200声音库。示例里有一条用户音色,ID 只作说明。
voicesobject[]
idstring音色 ID,例如 builtin:bright-girl 或 user:<uuid>。
namesobject
descriptionsobject
supported_languagesstring[]
originstring例如 cloned。
compatibilityobject[]按模型给出的兼容性。可用不等于对每个播报模型都兼容。
availableboolean
created_by_userboolean只有用户音色能删除,内置音色不可修改。
JSON
{
  "voices": [
    {
      "id": "user:00000000-0000-4000-8000-000000000001",
      "names": {
        "en-US": "My voice"
      },
      "descriptions": {},
      "supported_languages": [
        "en-US"
      ],
      "origin": "cloned",
      "compatibility": [],
      "available": true,
      "created_by_user": true
    }
  ]
}
401API Key 缺失或无效。
403Host 或 Origin 不被允许,或 License 被拒。按 error.code 区分这两种情况。
503所需的本地模型仍在准备(model_downloading),或服务正忙(service_busy)。带 Retry-After 时按它退避。