CreateVocabulary
Creates a custom vocabulary to improve the accuracy of speech recognition for specific words or phrases.
Try it now
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
RAM authorization
The following table describes the authorization information of this API. You can use the Action element in a RAM policy statement to grant RAM users or RAM roles the permission to call this API. For more information, see:
-
Operation: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, and List.
-
Resource type: the resource types that you can authorize for the operation. For more information, see:
- Resource types marked with an asterisk (*) are required.
- If an operation does not support resource-level authorization,
全部资源is used.
-
Condition keyword: the condition keys that are defined by the cloud service.
-
Related operation: other permissions that are required to successfully perform the operation. The caller must have the permissions of the related operations to succeed.
Operation | Access level | Resource type | Condition keyword | Related operation |
|---|---|---|---|---|
bailianvoicebot:CreateVocabulary | create | *All resources
| N/A | N/A |
Request syntax
POST HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| BusinessUnitId | string | No | The ID of the Bailian business space. | llm-baployoyopf22m2r |
| Name | string | No | The vocabulary name. | Financial-industry vocabulary |
| Description | string | No | The description. | Contains financial-industry professional terms |
| Words | object | No | The vocabulary list. | |
string | No | The vocabulary word. | {"apple":"2","banana":"3"} |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | Schema of Response | ||
| RequestId | string | The request ID. | CF6D3484-19A1-5C77-863B-AC8B5754D37C |
| HttpStatusCode | integer | The HTTP status code. | 200 |
| Message | string | The error message. | Instance llm-zzu528i29ecnprcl does not exist. |
| Code | string | The API status code. | OK |
| Data | string | The vocabulary ID. | a395011f-a247-400f-bc69-28796749fd52 |
| Params | array | The dynamic error parameter list. | |
string | The dynamic error parameter. | llm-zop7ukgtksltamo4 |
Examples
Success response
JSON format
{
"RequestId": "CF6D3484-19A1-5C77-863B-AC8B5754D37C",
"HttpStatusCode": 200,
"Message": "Instance llm-zzu528i29ecnprcl\n does not exist.",
"Code": "OK",
"Data": "a395011f-a247-400f-bc69-28796749fd52\n",
"Params": [
"llm-zop7ukgtksltamo4"
]
}
Error codes
Visit the Error Center to view more error codes.
Release notes
For more information, see Change details.