Code Monkey home page Code Monkey logo

Comments (6)

goatandsheep avatar goatandsheep commented on June 25, 2024 1
  1. 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
  2. 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?
  3. 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?
  4. 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.

ApayRus avatar ApayRus commented on June 25, 2024 1

@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.
Screenshot from 2021-01-06 05-24-21

from node-webvtt.

goatandsheep avatar goatandsheep commented on June 25, 2024 1

@Aparus very cool! Do you have a public fork of this project that you're working in?

from node-webvtt.

ApayRus avatar ApayRus commented on June 25, 2024 1

@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.

osk avatar osk commented on June 25, 2024 1

@ApayRus closing this, feel free to re-open or open new issues per feature suggestion

from node-webvtt.

ApayRus avatar ApayRus commented on June 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.