作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尝试找到一个包来转换来自 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/
我是一名优秀的程序员,十分优秀!