Package Exports
- @tvkitchen/appliance-caption-srt-generator
- @tvkitchen/appliance-caption-srt-generator/lib/index.js
- @tvkitchen/appliance-caption-srt-generator/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tvkitchen/appliance-caption-srt-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
TV Kitchen Caption SRT Generator Appliance
inputTypes: TEXT.ATOM, SEGMENT.START
outputTypes: TEXT.SRT
The Caption SRT Generator appliance ingests a stream of captions and converts them into the SubRip file format.
Timestamps are determined by the position
value of the TEXT.ATOM
payloads processed.
Configuration Options
The appliance takes in the following configuration values:
includeCounter
(boolean): determines if the output includes a counter as part of the text of each payload.
Examples
includeCounter: true (default)
Payload {
data: "2\n00:00:19,886 --> 00:00:20,787\n>>> WE'RE BACK ON WHAT HAS BEEN\n",
type: 'TEXT.SRT',
createdAt: '2021-02-18T20:17:50.583Z',
timestamp: '',
duration: 901,
position: 19886
}
includeCounter: false
Payload {
data: "00:00:19,886 --> 00:00:20,787\n>>> WE'RE BACK ON WHAT HAS BEEN\n",
type: 'TEXT.SRT',
createdAt: '2021-02-18T20:17:50.583Z',
timestamp: '',
duration: 901,
position: 19886
}
Dependencies
This appliance has no external dependencies.
About the TV Kitchen
TV Kitchen is a project of Bad Idea Factory. Learn more at the TV Kitchen project site.