# Function Description
To build a speech recognization task to backend.
# Request
# request example
POST /recognition/create HTTPS
Host: <host>
Content-Type: application/json
Authorization: <AuthString>
# Request Headers
Name | Description | Type | Mandatory |
---|---|---|---|
Authorization | User token information | string | true |
# Request Parameters
none
# Request Body
request body is JSON character string,for example:
{
"url": "url",
"trimIn": 0,
"trimOut": 10000000,
"duration": 10000000,
"projectId": 123,
"parentJobId": null,
"title": "title",
"resourceId": 1
}
Field | Explain | Type | Mandatory |
---|---|---|---|
url | video-audio-iamge url for recognizing | string | true |
trimIn | time incoming-point of recognization,in microsecond. | number | true |
trimOut | time outgoing-point of recognization,in microsecond. | number | true |
duration | duration time of part to speech recognization,in microsecond. | number | true |
projectId | project id | number | true |
parentJobId | parent task | number | true |
title | name | string | true |
resourceId | resource id | number | true |
# Response
# Response Header
No special response header
# Response Body
Successful Response Body :
{
"code": 0,
"enMsg": "success",
"msg": "成功",
"data": {
"id": 25,
"projectId": 123,
"url": "url",
"userId": 1,
"uuid": "01f18e3c6d14445daf1550fc7d16ea60",
"jobId": 192
}
}
Field | Explain | Type | Mandatory |
---|---|---|---|
id | task id | number | true |
projectId | project id | number | true |
url | resource url of recognizing | string | true |
userId | user id | number | true |
uuid | Universally Unique Identifier | string | true |
jobId | task id | number | true |
Failed Response Body:
{
"code": <errorCode>,
"enMsg": <errorMessage>,
"msg": <errorMessage>,
"data": null
}