gpt4 book ai didi

json - 如何将 Amazon Transcribe json 响应转换为字幕格式(srt、webvvt 等)?

转载 作者:行者123 更新时间:2023-12-02 04:47:47 25 4
gpt4 key购买 nike

尝试找到一个包来转换来自 Amazon AWS Transcribe 服务的 json 响应,但没有成功。

您可以看到an example of the JSON in the JavaScript part of the Fiddle .

我不想采取天真的方法,只是将 10 个单词“捆绑”在一起,因为这会以一种奇怪的方式间隔字幕。

我什至接受使用 Google Speech 服务或 Speechmatics 的编程方式。它们都返回一个按单词分割的 json 文件。

以前有人用过吗?

谢谢!

最佳答案

您可能会找到一种方法来做到这一点或创建一个脚本。我还尝试寻找一些现成的解决方案,因此最终编写了一些 JavaScript 代码来从 Amazon Transcribe 的 JSON 输出生成 SRT。

https://www.yash.info/aws-srt-creator.htm

我在句号 (.) 处断句。它是一个独立的 HTML 文件。欢迎根据需要下载并修改。

关于json - 如何将 Amazon Transcribe json 响应转换为字幕格式(srt、webvvt 等)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48547545/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com