GetTranscriptionJob - 转录
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

GetTranscriptionJob

提供有关指定转录作业的信息。

要查看指定转录作业的状态,请选中该TranscriptionJobStatus字段。如果状态为COMPLETED,则任务已完成。您可以在中指定的位置找到结果TranscriptFileUri。如果状态为FAILED,则详细FailureReason说明您的转录作业失败的原因。

如果您启用了内容编辑,则可以在中指定的位置找到经过编辑的脚本RedactedTranscriptFileUri

要获取转录任务列表,请使用ListTranscriptionJobs操作。

请求语法

{ "TranscriptionJobName": "string" }

请求参数

有关由所有操作通用的参数的信息,请参阅 “Commmmmmmmm mmmmmmmmmmm

请求接受采用 JSON 格式的以下数据。

TranscriptionJobName

您想要了解的转录作业的名称。Job 名称区分大小写。

类型:字符串

长度限制:最小长度为 1。最大长度为 200。

模式:^[0-9a-zA-Z._-]+

必需:是

响应语法

{ "TranscriptionJob": { "CompletionTime": number, "ContentRedaction": { "PiiEntityTypes": [ "string" ], "RedactionOutput": "string", "RedactionType": "string" }, "CreationTime": number, "FailureReason": "string", "IdentifiedLanguageScore": number, "IdentifyLanguage": boolean, "IdentifyMultipleLanguages": boolean, "JobExecutionSettings": { "AllowDeferredExecution": boolean, "DataAccessRoleArn": "string" }, "LanguageCode": "string", "LanguageCodes": [ { "DurationInSeconds": number, "LanguageCode": "string" } ], "LanguageIdSettings": { "string" : { "LanguageModelName": "string", "VocabularyFilterName": "string", "VocabularyName": "string" } }, "LanguageOptions": [ "string" ], "Media": { "MediaFileUri": "string", "RedactedMediaFileUri": "string" }, "MediaFormat": "string", "MediaSampleRateHertz": number, "ModelSettings": { "LanguageModelName": "string" }, "Settings": { "ChannelIdentification": boolean, "MaxAlternatives": number, "MaxSpeakerLabels": number, "ShowAlternatives": boolean, "ShowSpeakerLabels": boolean, "VocabularyFilterMethod": "string", "VocabularyFilterName": "string", "VocabularyName": "string" }, "StartTime": number, "Subtitles": { "Formats": [ "string" ], "OutputStartIndex": number, "SubtitleFileUris": [ "string" ] }, "Tags": [ { "Key": "string", "Value": "string" } ], "Transcript": { "RedactedTranscriptFileUri": "string", "TranscriptFileUri": "string" }, "TranscriptionJobName": "string", "TranscriptionJobStatus": "string" } }

响应元素

如果此操作成功,则该服务将会发送回 HTTP 200 响应。

服务以 JSON 格式返回的以下数据。

TranscriptionJob

提供有关指定转录作业的详细信息,包括作业状态和失败原因(如果适用)。

类型:TranscriptionJob 对象

错误

有关所有操作常见错误的信息,请参阅常见错误

BadRequestException

您的请求未通过一项或多项验证测试。当您要删除的实体不存在或处于非终端状态(例如IN PROGRESS)时,可能会发生这种情况。有关更多信息,请参阅 “异常消息” 字段。

HTTP 状态代码:400

InternalFailureException

遇到了内部错误。检查错误消息、更正问题,然后重试请求。

HTTP 状态代码:500

LimitExceededException

您要么发送了太多请求,要么输入文件太长。请稍候,然后再重试您的请求,或者使用较小的文件,然后重试您的请求。

HTTP 状态代码:400

NotFoundException

我们找不到请求的资源。检查指定的名称是否正确,然后重试您的请求。

HTTP 状态代码:400

另请参阅

有关在特定语言的 Amazon 软件开发工具包中使用此 API 的更多信息,请参阅以下内容: