Ending Recognition
Function
To cancel or end the recognition of a speech being recognized, the client needs to send a "recognition ending" request over WebSocket. The "recognition ending" request is sent in a text message. The commands and parameters are in JSON character strings.
Request
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| command | Yes | String | Indicates that the client ends the recognition request. Set this parameter to END. |
| cancel | No | Boolen | Indicates whether to cancel the return of the recognition result.
|
Example
{
"command": "END",
"cancel": false
} Status Code
For details about status codes, see Status Codes.
Error Code
For details about error codes, see Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot