Comments (6)
- I'm not sure this is consistent with the w3 webvtt standard format. If you can show an example somewhere we can figure something out
- Description should really go after the WEBVTT word where you have "this is the coolest format for subtitles ever!!" or as a NOTE I think?
- I like this idea, but I think let's think practically for a moment: what are some ways that the JSON output will need to be reformatted? There are quite a lot of tags including style tags, voice tags, karaoke-style time tags, etc. But I digress, one application I can think of that may benefit from the voice is if we want to convert to other formats, such as TTML. However, in that case, you should take a look at the documentation for TTML voices. Or perhaps being able to easily switch between multiple voices in an interface?
- This is a good idea. We previously decided to not include NOTE because we wanted to be consistent with the VTTCue API. I'm not sure how it works with NOTE tbh. I guess it couldn't hurt!
These are great suggestions. What is an application for which you need the JSON to be easily modifiable?
from node-webvtt.
@goatandsheep thank you for answer!
I have done a couple of parsers since this message )
I extract a tag <v.class1.class2 Ahmed> into an object: { voice: { name:"Ahmed", classes: ['class1', 'class2' ] } }
and keep Note, then parse it with yaml-parser.
I'm doing learning apps. And have a several goals. One of them is -- to display subtitles as a book -- with chapters menu navigation, and character avatars near they cues (like in chat).
Also I do player for podcasts.
from node-webvtt.
@Aparus very cool! Do you have a public fork of this project that you're working in?
from node-webvtt.
@goatandsheep , it's not fork. I did it from the scratch ))
I'm sorry for lack of docs, you can see examples in test files.
It's universal subtitles parser (for srt, vtt, audacity labeles) -- for my purposes.
May be voice tag extractor will be useful for you.
https://github.com/Aparus/frazy-parser
About parse vtt as a book with chapters -- I can't find it. I was working on it a couple of days and now can't find any peace of code about it. It makes me crazy )
from node-webvtt.
@ApayRus closing this, feel free to re-open or open new issues per feature suggestion
from node-webvtt.
@goatandsheep oh, it was in codesandbox, of course )) but it is messy one.
https://codesandbox.io/s/vttjs-uyyvs?file=/src/myParser.js
from node-webvtt.
Related Issues (20)
- Hours timestamp should support more than 2 digits HOT 2
- [Suggestion] Add an option for parsing without <v> tags? HOT 2
- [Suggestion] TypeScript Conversion / Support HOT 5
- Remove commander dependency
- Spaces being added in meta header
- Automated testing / code coverage HOT 3
- [Bug] Parser parses empty cues HOT 1
- [Feature Suggestion] Ignore extra header lines HOT 4
- [Compiler] Rounding Error for long decimals HOT 3
- Support relaxed parsing HOT 3
- Can we convert Array to WebVTT? HOT 1
- VTT Subs go out of sync when translate from EN to ES. HOT 2
- Subtitles can be compiled in non-chronological order HOT 1
- Handle STYLE blocks HOT 8
- Does not compile metadata
- FEATURE: X-TIMESTAMP-MAP/MPEGTS metadata
- Library throws error with malformed webvtt file HOT 6
- Add support for meta option in segmenter HOT 1
- Webvtt parser breaking with X-TIMESTAMP-MAP HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-webvtt.