本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
启动和停止 Amazon Chime SDK 实时转录
你使用 Amazon Chime 软件开发工具包 StartMeetingTranscription通过对会议应用来启动会议转录的 API。TranscriptionConfigurationAmazon Chime SDK 控制器将配置异步转发给会议。启动会议转录成功或失败通过亚马逊简单通知服务 (Amazon SNS) Simple Notification Service 和亚马逊发送的消息来表示。 EventBridge
开始转录
此示例显示如何使用 Amazon Transcribe 开始实时转录。
POST /meetings/meetingId/transcription?operation=start HTTP/1.1 Content-type: application/json { "TranscriptionConfiguration": { "EngineTranscribeSettings": { "LanguageCode": "en-US", "VocabularyFilterMethod": "tag", "VocabularyFilterName": "profanity", "VocabularyName": "lingo", "Region": "us-east-1" "EnablePartialResultsStabilization":true, "PartialResultsStability": "high", "ContentIdentificationType": "PII", "ContentRedactionType": "PII", "PiiEntityTypes": "ALL", "LanguageModelName": "language-model" } } }
此示例显示如何使用 Amazon Transcribe Medical 开始实时转录。
POST /meetings/meetingId/transcription?operation=start HTTP/1.1 Content-type: application/json { "TranscriptionConfiguration": { "EngineTranscribeMedicalSettings": { "LanguageCode": "en-US", "Specialty": "PRIMARYCARE", "Type": "CONVERSATION", "VocabularyName": "lingo", "Region": "us-east-1", "ContentIdentificationType": "PHI", } } }
StartMeetingTranscription— 开始会议转录。-
meetingId— 会议的 ID,由返回 CreateMeeting API 。TranscriptionConfiguration— 封装实时转录的参数。您必须精确指定一个配置,EngineTranscribeSettings或EngineTranscribeMedicalSettings。 EngineTranscribeSettings— 指定 Amazon Transcribe 的使用并将其设置传递给 Amazon Transcribe.-
LanguageCode– 必需。VocabularyFilterMethod– 可选。VocabularyFilterName– 可选。VocabularyName– 可选。Region– 可选。EnablePartialResultsStabilization– 可选。PartialResultsStability– 可选。ContentIdentificationType– 可选。ContentRedactionType– 可选。PiiEntityTypes– 可选。LanguageModelName– 可选。 EngineTranscribeMedicalSettings— 指定使用 Amazon Transcribe Medical 并将其设置传递给 Amazon Transcribe Medical.-
LanguageCode– 必需。Speciality– 必需。Type– 必需。VocabularyName– 可选。Region– 可选。ContentIdentificationType– 可选。
响应
Amazon Transcribe 和 Amazon Transcribe Medical 会作出以下响应:
-
带空主体的
OK(200),如果将TranscriptionConfiguration成功应用于会议。
错误消息
Amazon Transcribe 和 Amazon Transcribe Medical 会显示以下错误消息:
-
BadRequestException (400):输入参数与服务的限制不符。
-
ForbiddenException (403):永久禁止客户端提出请求。
-
NotFoundException (404):
meetingId不存在。 -
ResourceLimitExceededException (400):请求超出资源限制。例如,启用实时转录功能的会议太多。
-
ServiceFailureException (500):服务遇到了意外错误。
-
ServiceUnavailableException (503):该服务当前不可用。
-
ThrottledClientException (429):客户端超出了其请求速率限制。
-
UnauthorizedClientException (401):客户目前无权提出请求。
第二次呼叫 StartMeetingTranscription 会更新应用于会议的 TranscriptionConfiguration。
停止转录
你用 StopMeetingTranscriptionTranscriptionConfiguration用于删除给定meetingID和结束会议转录的 API。结束会议会自动停止转录。
此示例显示调用的 StopMeetingTranscription 请求语法。
POST/meetings/meetingId/transcription?operation=stop HTTP/1.1
响应
Amazon Transcribe 和 Amazon Transcribe Medical 会作出以下响应:
-
带空主体的
OK(200),如果将TranscriptionConfiguration成功从会议中删除。
错误消息
Amazon Transcribe 和 Amazon Transcribe Medical 会显示以下错误消息:
-
BadRequestException (400):输入参数与服务的限制不符。
-
ForbiddenException (403):永久禁止客户端提出请求。
-
NotFoundException (404):
meetingId不存在。 -
ServiceFailureException (500):服务遇到了意外错误。
-
ServiceUnavailableException (503):该服务当前不可用。
-
ThrottledClientException (429):客户端超出了其请求速率限制。
-
UnauthorizedClientException (401):客户目前无权提出请求。