Converts vtt captions to plain text
npm install vtt-to-textbash
npm i -S vtt-to-text
or use yarn
yarn add vtt-to-text
`Example
Input:
`text
captions: WEBVTT
Kind: captions
Language: en00:00:00.160 --> 00:00:03.270 align:start position:0%
all<00:00:00.240> right <00:00:00.640> last <00:00:01.599> apple <00:00:02.159> story <00:00:02.560> of <00:00:02.639> the <00:00:02.800> day
00:00:03.270 --> 00:00:03.280 align:start position:0%
all right last apple story of the day
`Output:
`text
all right last apple story of the day
`Usage
`javascript
const {vttToPlainText} = require("vtt-to-text")const captionVtt1 =
00:00:00.160 --> 00:00:03.270 align:start position:0%
all<00:00:00.240>
let a = vttToPlainText(captionVtt1);
console.log(a);
``