PHP code example of kitbrennan90 / aws-transcribe-to-webvtt
1. Go to this page and download the library: Download kitbrennan90/aws-transcribe-to-webvtt library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kitbrennan90 / aws-transcribe-to-webvtt example snippets
use AwsTranscribeToWebVTT\Transcriber;
$transcriber = new Transcriber();
$transcriber->setAwsTranscription($jsonString);
$result = $transcriber->getOutputAsString();
use AwsTranscribeToWebVTT\Transcriber;
$transcriber = new Transcriber();
$transcriber->setAwsTranscription($jsonString)->setMaxCueStringLength(40);
$result = $transcriber->getOutputAsString();
use AwsTranscribeToWebVTT\Transcriber;
$transcriber = new Transcriber();
$transcriber->setAwsTranscription($jsonString)->setMaxCueTimeLength(50);
$result = $transcriber->getOutputAsString();
use AwsTranscribeToWebVTT\Transcriber;
$transcriber = new Transcriber();
$transcriber->setAwsTranscription($jsonString)->setSecondPostponement(10);
$result = $transcriber->getOutputAsString();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.