You need to enable JavaScript to run this app.
文档中心
豆包语音

豆包语音

复制全文
下载 pdf
resource_packs
获取资源包状态信息
复制全文
下载 pdf
获取资源包状态信息
资源包状态信息​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:ResourcePacksStatus​
要执行的操作,取值:ResourcePacksStatus。​
​
Version string 必选 示例值:2025-05-20​
API的版本,取值:2025-05-20。​
​
ProjectName string 必选 示例值:default​
项目名​
​
DisplayRule string 可选 示例值:by_expire​
展示规则​
​
TagFilters object[] 可选 示例值:参考请求示例​
标签过滤​
Key string 必选 示例值:tag-key​
标签key​
​
Values string[] 必选 示例值:tag-value​
标签value​
​
​
ResourceIDs string[] 必选 示例值:volc.service_type.10029​
服务唯一标识​
​
Types string[] 必选 示例值:access​
类型(access,quota,prepaid)​
​
PageSize integer 必选 示例值:10​
页大小​
​
PageNumber integer 可选 示例值:1​
页码​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
PageNumber integer 示例值:1​
页码​
​
PageSize integer 示例值:10​
每页大小​
​
TotalCount integer 示例值:11​
总数量​
​
NextToken string 示例值:xxx​
下一个分页需要的token​
​
MaxResults integer 示例值:10​
最大的结果数​
​
TotalHarvests object[] 示例值:参考响应示例​
所有的限额配置​
Unit string​
Unit​
​
PurchasedAmount float​
购买数量​
​
CurrentUsage float​
当前使用​
​
ResourceID string​
资源Id​
​
CropType string​
CropType​
​
​
Packs object[] 示例值:参考响应示例​
带 tags 的资源包​
Attributes object​
Attributes​
CodeAttribute object​
CodeAttribute​
Name string​
Name​
​
​
IsForcedExpiresDisplay boolean​
IsForcedExpiresDisplay​
​
FormalizedFrom string​
FormalizedFrom​
​
​
State string​
State​
​
Harvest object​
Harvest​
Unit string​
Unit​
​
PurchasedAmount float​
购买数量​
​
CurrentUsage float​
当前使用​
​
ResourceID string​
资源Id​
​
CropType string​
CropType​
​
​
TrainID string​
TrainID​
​
Alias string​
别称​
​
GroupName string​
GroupName​
​
Details object​
详情​
ToneNumber string​
ToneNumber​
​
DemoLink string​
测试链接​
​
Aliasable boolean​
Aliasable​
​
Formalizable boolean​
Formalizable​
​
Language string​
语言​
​
VoiceType string​
VoiceType​
​
RecommendedScenario string​
推荐方案​
​
ExtraApiAllowed boolean​
允许额外的API​
​
MegattsTraining object​
MegattsTraining​
IsActivatable boolean​
是否激活​
​
State string​
State​
​
Version string​
版本​
​
AvailableTrainingTimes integer​
AvailableTrainingTimes​
​
CreateTime integer​
创建时间​
​
​
​
Expires string​
过期时间​
​
CurrentUsage string​
当前使用​
​
PurchasedAmount string​
购买数量​
​
PackType string​
PackType​
​
Type string​
Type​
​
RawType string​
RawType​
​
ResourceDisplay string​
资源展示​
​
ConfigurationCode string​
ConfigurationCode​
​
Code string​
Code​
​
ResourceID string​
ResourceID​
​
IsShareable boolean​
是否共享​
​
InstanceNumber string​
InstanceNumber​
​
​
​
​
请求示例​
​
POST /?Action=ResourcePacksStatus&Version=2025-05-20 HTTP/1.1​
Host: https://open.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20250818T134010Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250818/cn-beijing/speech_saas_prod/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{​
"DisplayRule": "by_expire",​
"TagFilters": [​
{​
"Key": "tag-key",​
"Values": [​
"tag-value"​
]​
}​
],​
"ProjectName": "default",​
"ResourceIDs": [​
"volc.service_type.10029"​
],​
"Types": [​
"access"​
],​
"PageSize": 10,​
"PageNumber": 1​
}​
​
返回示例​
​
{​
"Result": {​
"Packs": [​
{​
"InstanceNumber": "",​
"IsShareable": false,​
"ResourceID": "volc.service_type.10029",​
"Code": "Free_API_Package_20000_text_words_volc.service_type.10029",​
"ConfigurationCode": "Free_API_Package_20000_text_words_volc.service_type.10029",​
"ResourceDisplay": "",​
"RawType": "text_words",​
"Type": "字数包",​
"PackType": "prepaid",​
"PurchasedAmount": "20,000 字数",​
"CurrentUsage": "5,982 字数",​
"Expires": "-",​
"Details": {​
"ToneNumber": null,​
"DemoLink": null,​
"Aliasable": null,​
"Formalizable": null,​
"Language": null,​
"VoiceType": null,​
"RecommendedScenario": null,​
"Display": null,​
"ExtraApiAllowed": null,​
"MegattsTraining": null​
},​
"GroupName": "字符版",​
"Alias": "",​
"TrainID": "S_OcL4bPcz1",​
"Harvest": {​
"Unit": "字数",​
"PurchasedAmount": 20000,​
"CurrentUsage": 5982,​
"ResourceID": "volc.service_type.10029",​
"CropType": "text_words"​
},​
"State": "active"​
}​
],​
"TotalHarvests": [​
{​
"Unit": "字数",​
"PurchasedAmount": 20000,​
"CurrentUsage": 5982,​
"ResourceID": "volc.service_type.10029",​
"CropType": "text_words"​
}​
],​
"PageNumber": 1,​
"PageSize": 3,​
"TotalCount": 1​
},​
"ResponseMetadata": {​
"RequestId": "202508291111061C1A6E189B711AA6D69C",​
"Action": "ResourcePacksStatus",​
"Version": "2025-05-20",​
"Service": "speech_saas_prod",​
"Region": "cn-north-1"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidParameter​
The specified parameter %s is invalid.​
​
500​
InternalError​
The request has failed due to an unknown error.​
​
​
SDK​
下表提供了豆包语音支持的SDK列表,您可以在GitHub仓库查看SDK更新历史、获取安装包、查看指导文档。​
​
类别​
编程语言​
Github地址​
SpeechSaasProd​
Java​
​
Go​
​
Python​
​
PHP​
​
​
最近更新时间:2026.09.28 21:20:23
这个页面对您有帮助吗?
有用
有用
无用
无用