JSON to VTT Generator - AudiovisualMetadataPlatform/amp_documentation GitHub Wiki

  1. AMP: Audiovisual Metadata Platform
  2. Documentation
  3. For Developers
  4. MGM Adapters

JSON to VTT Generator

2020

  • Source code
    • Location: galaxy/tools/vtt_generator/jsonToVtt_adapter.xml calls the VTT generator shell script.
    • This shell script generates the VTT format transcript(https://w3c.github.io/webvtt/) from a Standard AMP JSON.
  • The tool can be invoked from Galaxy UI as other tools.
    • If the tool is run individually without any other tool, the user needs to use Get Data / Upload from a computer to ingest the input file into Galaxy before running the tool.
    • When ingesting, choose binary (the default) as the file format. The file then will be copied into a designated location in the Galaxy file system.
    • The tool can also be embedded in the workflow and can take its input from a preceding tool.
  • The tool parameters have detailed labels and helpful info for the users to understand what each one is for and its valid value set.
    • $input_seg: the standard AMP JSON format input 
    • $input_stt: this is the optional input containing the speaker diarization info(usually present if the input is produced as an output of Kaldi)
    • $vtt_output_file: the result is a VTT file with transcript text as per the input JSON.
  • The output file
    • The output file created by the VTT generator by forming statements by concatenating the words in the input JSON.
    • The end of a statement is identified by the change of speaker or punctuation occurrence. This is when the statement is written to the output file.
    • The start and end times of statements are also written in the VTT file as per its format.
    • Once a current statement is written, the script starts building a new statement in the same way as above and this process continues until the end of JSON is reached,

Attachments:

image2020-5-27_14-46-18.png (image/png)\

Comments:


| [] | | | | [Unknown User | | (vinitab)](https:/ | | /uisapp2.iu.edu/confluence-prd/display/~vinitab)  - I think you | | flipped the meaning of the two input parameters. | | | | \ | | | | [] | | | | ::: | | Posted by | | 01cf52a5437a635301437a64f55512bb at May 27, 2020 10:46 | | ::: |

Document generated by Confluence on Feb 25, 2025 10:39