# 发起语音转写

# 功能描述

向后端发起语音转写任务

# 请求

# 请求示例

POST /recognition/create HTTPS
Host: <host>
Content-Type: application/json
Authorization: <AuthString>

# 请求参数

# 请求头

名称 描述 类型 必填
Authorization 用户token信息 string

# 请求体

请求体是json字符串,例如:

{
    "url": 'https://.....',        
    "trimIn": 0,      
    "trimOut": 10000000,          
    "duration": 10000000,             
    "projectId": 123,                   
}
名称 描述 类型 必填
url 需要识别的视音频地址 string
trimIn 识别片段的时间入点 int (微秒)
trimOut 识别片段的时间出点 int(微秒)
duration 需要识别部分的时长 int(微秒)
projectId 项目ID int

# 响应

# 响应头

此接口无特殊响应头。

# 响应体

请求成功的响应体为

{
    "code": 0,
    "message": "",          
    "data": {
        id: 126,       // 用来查询转写任务的jobId
        projectId: 7307,
        url: "http://bsedit-1257467088.cos.ap-beijing.myqcloud.com/video/2/城市-圣彼得堡.mp4",
        userId: 100,
        uuid: "e5605a4c-c8f1-4fcf-92f8-1f706d041980"
    }
}

请求失败的响应体为

{
    "code": <errorCode>,
    "message": <errorMessage>,          
    "data": null
}