Domain name for API request: mps.intl.tencentcloudapi.com.
This API is used to query a smart subtitle hotword lexicon.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeAsrHotwords. |
Version | Yes | String | Common Params. The value used for this API: 2019-06-12. |
Region | No | String | Common Params. This parameter is not required for this API. |
HotwordsId | No | String | ID of the hotword lexicon to be queried. Note: Either HotwordsId or Name should be specified. If both are specified, HotwordsId has a higher priority than Name. |
Name | No | String | Hotword lexicon name. Note: Either HotwordsId or Name should be specified. If both are specified, HotwordsId has a higher priority than Name. |
Offset | No | Integer | Paging offset. Default value: 0. |
Limit | No | Integer | Number of returned entries. Default value: 10. Maximum value: 100. |
OrderBy | No | String | Hotword sorting field. Valid values: - Default: Sort by the hotword upload sequence. - Weight: Sort by the weight. - Lexical: Sort by the first letter of hotwords. |
OrderType | No | Integer | Hotword sorting order. 0: ascending (default); 1: descending. |
Parameter Name | Type | Description |
---|---|---|
HotwordsId | String | ID of the hotword lexicon to be queried. |
Status | Integer | Current status of the hotword lexicon corresponding to the ID. The value 0 indicates that no template is bound to this hotword lexicon when the query is performed and that the hotword lexicon can be deleted. Note: This field may return null, indicating that no valid value can be obtained. |
Name | String | Hotword lexicon name. Note: This field may return null, indicating that no valid value can be obtained. |
Type | Integer | The value is 0 for a temporary hotword lexicon, and the string provided during creation is returned. The value is 1 for a file-based hotword lexicon, and the content of the file uploaded during creation is returned. Note: This field may return null, indicating that no valid value can be obtained. |
FileName | String | Name of the uploaded hotword file. Note: This field may return null, indicating that no valid value can be obtained. |
HotWords | Array of AsrHotwordsSetItem | List of hotwords returned for the query. |
Content | String | Hotword text, which depends on the value of Type. If the value of Type is 0, the hotword string is returned. If the value of Type is 1, the base64-encoded content of the hotword file is returned. Note: This field may return null, indicating that no valid value can be obtained. |
WordCount | Integer | Number of words contained in the hotword lexicon. Note: This field may return null, indicating that no valid value can be obtained. |
Offset | Integer | Paging offset. Default value: 0. Note: This field may return null, indicating that no valid value can be obtained. |
Limit | Integer | Number of returned entries. Default value: 10. Maximum value: 100. Note: This field may return null, indicating that no valid value can be obtained. |
CreateTime | String | Creation time of the hotword lexicon in ISO datetime format (UTC time). For example, "2006-01-02T15:04:05Z".Note: This field may return null, indicating that no valid value can be obtained. |
UpdateTime | String | Modification time of the hotword lexicon in ISO datetime format (UTC time). For example, "2006-01-02T15:04:05Z". Note: This field may return null, indicating that no valid value can be obtained. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: mps.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAsrHotwords
<Common request parameters>
{
"HotwordsId": "hwd-aexxxxxxxxxxxxxx1481"
}
{
"Response": {
"Content": "Tencent Cloud|10,Automatic Speech Recognition|5,ASR|10",
"CreateTime": "2025-03-19T03:29:06Z",
"FileName": "",
"HotWords": [
{
"Id": 1,
"Text": "Tencent Cloud",
"Weight": 10
},
{
"Id": 2,
"Text": "Automatic Speech Recognition",
"Weight": 5
},
{
"Id": 3,
"Text": "ASR",
"Weight": 10
}
],
"HotwordsId": "hwd-aexxxxxxxxxxxxxx1481",
"Limit": 0,
"Name": "HotwordsNameExample",
"Offset": 0,
"RequestId": "bad606d3-8a49-427f-a6a6-26c9f1fe1dc3",
"Status": 0,
"Type": 0,
"UpdateTime": "2025-03-19T03:29:06Z",
"WordCount": 3
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError | Internal error. |
InternalError.AccessDBError | Data error. |
InvalidParameterValue | Incorrect parameter value. |