Skip to content

MaidenVoyageSoftware/jsonToWebVtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonToWebVtt

1Converts from AWS Transcribe JSON to WebVTT

Example Usage

Get the vtt file as a string

<?
include 'main.php';

echo awsTranscribeToWebVtt(file_get_contents('test.json'));
?>

Output the vtt file

<?
include 'main.php';

$fileIn = 'test.json';
$fileOut = 'test.vtt';
$vtt = awsTranscribeToWebVtt(file_get_contents($fileIn));
file_put_contents($fileOut, $vtt);
?>

Configuration

To configure location of line breaks, change the variables $LINE_BREAK_WITH_PUNCTUATION and $LINE_BREAK_WITHOUT_PUNCTUATION located in the function awsTranscribeToWebVtt in main.php

About

Converts from AWS Transcribe JSON to WebVTT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages