laracasts/transcriptions
最新稳定版本:v0.3.4
Composer 安装命令:
composer require laracasts/transcriptions
包简介
Load and parse VTT files.
README 文档
README
This small PHP package assists in the loading and parsing of VTT files.
Usage
use Laracasts\Transcriptions\Transcription; $transcription = Transcription::load('path/to/file.vtt'); foreach ($transcription->lines() as $line) { // $line->body // $line->toHtml() // $line->timestamp->begin() // $line->timestamp->beginSeconds() // $line->timestamp->end() // $line->timestamp->endSeconds() // json_encode($line); } // Group lines into full sentences. // $transcription->lines()->groupBySentence();
License
This package is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 10.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 60
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-30