语音转译

taskId

5ca1bd6b3872ecc9afb99132

taskId参数数据结构
参数名 类型 是否必有 说明
text String 是 整个语音的译文, 可能为空
details Array 是 译文分句信息
details 数据结构
参数名 类型 是否必有 说明
content String 是 当前分句译文
startTime Number 是 当前分句译文的开始时间
endTime Number 是 当前分句译文的结束时间
speechUrl String 否 语音片段地址。默认不返还,需要返回请联系我们

数据示例(文本):

{
  "code": 0,
  "message": "success",
  "nonce": "0.01627771095362096",
  "timestamp": 1552391372490,
  "requestId": "tupu_request_id",
  "roomId": "your_room_id",
  "userId": "your_user_id",
  "forumId": "your_forum_id",
  "customInfo": {
    "hello": true,
    "other": "your customInfo"
  },
  "5ca1bd6b3872ecc9afb99132": {
        "text": "床前明月光,疑是地上霜。举头望明月,低头思故乡",
        "details": [
          {
            "content": "",
            "startTime": 0,
            "endTime": 10,
            "speechUrl": "http:://123.mp3"
          },
          {
            "content": "床前明月光,疑是",
            "startTime": 10,
            "endTime": 20,
            "speechUrl": "http:://123.mp3"
          },
          {
            "content": "地上霜。举头望明月,",
            "startTime": 20,
            "endTime": 30,
            "speechUrl": "http:://123.mp3"
          },
          {
            "content": "低头思故乡",
            "startTime": 30,
            "endTime": 38,
            "speechUrl": "http:://123.mp3"
          }
        ]
    }
}

results matching ""

    No results matching ""