/CaptionsFileParser

Subtitle file parser (.srt, .vtt, etc)

Primary LanguageC#MIT LicenseMIT

Captions File Parser

Easy and simple way to convert subtitle files into C# data structures.

Art image

 

Usage

Create a CaptionDataParser and use Parse() with the desired caption file to obtain a Queue with all the data:

    Queue<Caption> captionsQueue = new Queue<Caption>();

    CaptionDataParser captionsParser = new CaptionDataParser();

    captionsQueue = captionsParser.Parse(textAsset);

 

Installation

Add the custom package to your project via:

or

Instructions

 

Technical details

Supported captions file:

SubRip Subtitle (.srt)

More file formats coming soon

 

Compatibility

  • Any Unity version
  • Any pipeline (Build-in, URP, HDRP, etc)

 

Support

⭐ Star if you like it
❤️️ Follow me for more