GetTaskInfo - 查询任务状态和任务结果

查询任务状态和任务结果。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
tingwu:GetTaskInfoget
  • 全部资源
    *

请求语法

GET /openapi/tingwu/v2/tasks/{TaskId}

请求参数

名称类型必填描述示例值
TaskIdstring

创建任务时返回的 TaskId。

c5394c6ee0fb474899d42215a3925c7e

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID,仅用于联调。

35124E1C-AE99-5D6C-A52E-BD689D8D****
Codestring

状态码。

0
Messagestring

状态说明。

Success.
Dataobject

返回对象。

TaskIdstring

任务 ID。

c5394c6ee0fb474899d42215a3925c7e
TaskKeystring

用户创建任务时设置的自定义标识。

task_tingwu_123
TaskStatusstring

任务状态。

  • ONGOING:任务进行中。
  • COMPLETED:任务完成。
  • FAILED:任务失败
  • INVALID:无效任务。
COMPLETED
OutputMp3Pathstring

mp3 转换结果的 url 链接

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_20231222101008.mp3?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=vubbMkkhkoNwDG5JvaY0VvSs***%3D
OutputMp4Pathstring

mp4 转换结果的 url 链接

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_20231222101008.mp4?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=vubbMkkhkoNwDG5JvaY0VvSs***%3D
OutputThumbnailPathstring

视频缩略图的 url 链接

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_20231222101008.png?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=vubbMkkhkoNwDG5JvaY0VvSs***%3D
OutputSpectrumPathstring

音频波形图的 url 链接

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_20231222101008.spectrum?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=vubbMkkhkoNwDG5JvaY0VvSs***%3D
ErrorCodestring

错误码

TSC.AudioFormat
ErrorMessagestring

错误信息

Audio format invalid.
Resultobject

各类算法处理的结果集合。该结果以 http 链接的形式返回,用户可基于该链接解析原生结果。

Transcriptionstring

语音转写对应的结果 url 链接。

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_Transcription_20231222101008.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=vubbMkkhkoNwDG5JvaY0VvSs***%3D
AutoChaptersstring

章节速览功能对应的结果 url 链接。

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_AutoChapters_20231222101215.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=NeZHz4XVUmqq8kuuW2js***%3D
MeetingAssistancestring

智能纪要对应的结果 url 链接

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_MeetingAssistance_20231222101112.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=anNq72XSJxRYpQoTlprgnl***%3D
Summarizationstring

大模型摘要对应的结果 url 链接。

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_Summarization_20231222101215.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5***&Signature=cNhmUfpblutJNCV64Tat3R***%3D
Translationstring

文本翻译对应的结果 url 链接

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_Translation_20231222101215.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=NeZHz4XVUmqq8kuuW2jsHG***%3D
PptExtractionstring

视频 PPT 抽取和总结对应的结果 url 链接

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_PptExtraction_20231222101215.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=NeZHz4XVUmqq8kuuW2jsHG***%3D
TextPolishstring

口语书面化对应的结果 url 链接

http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_TextPolish_20231222101215.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=NeZHz4XVUmqq8kuuW2jsHG***%3D
CustomPromptstring

自定义 prompt 对应的结果 url 链接

ServiceInspectionstring

服务质检对应的结果 url 链接

示例

正常返回示例

JSON格式

{
  "RequestId": "35124E1C-AE99-5D6C-A52E-BD689D8D****",
  "Code": "0",
  "Message": "Success.",
  "Data": {
    "TaskId": "c5394c6ee0fb474899d42215a3925c7e",
    "TaskKey": "task_tingwu_123",
    "TaskStatus": "COMPLETED",
    "OutputMp3Path": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_20231222101008.mp3?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=vubbMkkhkoNwDG5JvaY0VvSs***%3D",
    "OutputMp4Path": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_20231222101008.mp4?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=vubbMkkhkoNwDG5JvaY0VvSs***%3D",
    "OutputThumbnailPath": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_20231222101008.png?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=vubbMkkhkoNwDG5JvaY0VvSs***%3D",
    "OutputSpectrumPath": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_20231222101008.spectrum?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=vubbMkkhkoNwDG5JvaY0VvSs***%3D",
    "ErrorCode": "TSC.AudioFormat",
    "ErrorMessage": "Audio format invalid.",
    "Result": {
      "Transcription": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_Transcription_20231222101008.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=vubbMkkhkoNwDG5JvaY0VvSs***%3D",
      "AutoChapters": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_AutoChapters_20231222101215.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=NeZHz4XVUmqq8kuuW2js***%3D",
      "MeetingAssistance": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_MeetingAssistance_20231222101112.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=anNq72XSJxRYpQoTlprgnl***%3D",
      "Summarization": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_Summarization_20231222101215.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5***&Signature=cNhmUfpblutJNCV64Tat3R***%3D",
      "Translation": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_Translation_20231222101215.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=NeZHz4XVUmqq8kuuW2jsHG***%3D",
      "PptExtraction": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_PptExtraction_20231222101215.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=NeZHz4XVUmqq8kuuW2jsHG***%3D",
      "TextPolish": "http://xxxx.com/tingwu/output/1738248324/094e964bf0e04e39/094e964bf0e04e39_TextPolish_20231222101215.json?Expires=1706064016&OSSAccessKeyId=LTAI4t5S***&Signature=NeZHz4XVUmqq8kuuW2jsHG***%3D",
      "CustomPrompt": "",
      "ServiceInspection": ""
    }
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2024-08-15OpenAPI 返回结构发生变更查看变更详情
2024-04-12OpenAPI 返回结构发生变更查看变更详情
2024-04-10OpenAPI 返回结构发生变更查看变更详情
2024-02-23OpenAPI 返回结构发生变更查看变更详情
2023-12-25OpenAPI 返回结构发生变更查看变更详情