简体   繁体   English

aws 转录回调 function

[英]aws transcribe callback function

I want to call AWS transcribe function from an AWS Lambda.我想从 AWS Lambda 调用 AWS transcribe function。

In that lambda handler, I want to start the transcription job but not wait for it to finish in a while loop since it will not be cost-efficient.在那个 lambda 处理程序中,我想开始转录作业,但不要等待它在 while 循环中完成,因为它不具有成本效益。 I don't see any way for the transcription job finish to call another Lambda, or something like that, to store the transcription information in an s3 bucket for example.我看不出有任何方法可以让转录工作完成调用另一个 Lambda 或类似的东西,例如将转录信息存储在 s3 存储桶中。

Any idea how to solve this?知道如何解决这个问题吗?

See Using Amazon EventBridge with Amazon Transcribe .请参阅将 Amazon EventBridge 与 Amazon Transcribe 结合使用

With Amazon EventBridge, you can respond to state changes in your Amazon Transcribe jobs by initiating events in other AWS services.借助 Amazon EventBridge,您可以通过在其他 AWS 服务中启动事件来响应您的 Amazon Transcribe 作业中的 state 更改。 When a transcription job changes state, EventBridge automatically sends an event to an event stream.当转录作业更改 state 时,EventBridge 会自动将事件发送到事件 stream。 You create rules that define the events that you want to monitor in the event stream and the action that EventBridge should take when those events occur.您可以创建规则来定义要在事件 stream 中监视的事件以及在这些事件发生时 EventBridge 应采取的操作。 For example, routing the event to another service (or target), which can then take an action.例如,将事件路由到另一个服务(或目标),然后它可以采取行动。 You could, for example, configure a rule to route an event to an AWS Lambda function when a transcription job has completed successfully.例如,您可以配置规则以在转录作业成功完成后将事件路由到 AWS Lambda function。

Another alternative is:另一种选择是:

  • when you call StartTranscriptionJob, you supply an S3 bucket name and S3 object key that will receive the transcribed results当您调用 StartTranscriptionJob 时,您提供一个 S3 存储桶名称和 S3 object 密钥,它将接收转录结果
  • you can use the Amazon S3 Event Notifications feature to notify you or to automatically trigger a Lambda function您可以使用Amazon S3 事件通知功能来通知您或自动触发 Lambda function

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM