UpdateSpeechQueue
) is used to update a speech recognition queue.PUT /asrqueue/p8eb46b8cc1a94bc09512d16c5c4f4d3a HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><Name>Queue Name</Name><QueueID></QueueID><State></State><NotifyConfig><Type></Type><Url></Url><Event></Event></NotifyConfig></Request>
Node Name (Keyword) | Parent Node | Description | Type | Required |
Request | None | Request container | Container | Yes |
Request
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
Name | Request | Template name | String | Yes | Length limit: 100 characters |
QueueID | Request | Channel ID | String | Yes | - |
State | Request | Channel status | String | Yes | 1. Active: Jobs in the channel will be scheduled and executed by the speech recognition service. Paused: The channel is paused, and jobs in it will no longer be scheduled and executed. All jobs in the channel will remain in the `Submitted` status, while jobs being executed will continue without being affected. |
NotifyConfig | Request | Notification channel | Container | Yes | Third-party callback URL |
NotifyConfig
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
Url | Request.NotifyConfig | Callback configuration | String | No | Length limit: 100 characters |
Type | Request.NotifyConfig | Callback type. General callback: Url | String | No | Length limit: 100 characters |
Event | Request.NotifyConfig | Callback event | String | No | Length limit: 100 characters |
State | Request.NotifyConfig | Callback switch: `Off` or `On` | String | No | Length limit: 100 characters |
<Response><RequestId>NTk0MjdmODlfMjQ4OGY3XzYzYzhf****</RequestId><Queue><QueueId></QueueId><Name></Name><State>Active</State><NotifyConfig><Url>mts-topic-1</Url><Type></Type><Event></Event></NotifyConfig><CreateTime></CreateTime><UpdateTime></UpdateTime></Queue></Response>
Node Name (Keyword) | Parent Node | Description | Type |
Response | None | Response container | Container |
Response
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type |
RequestId | Response | Unique ID of the request. | String |
Queue | Response | Queue information. Same as Response.QueueList in [DescribeSpeechQueues]. | Container |
Was this page helpful?