Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smudger/transcriptions
Load and parse VTT files.
https://github.com/smudger/transcriptions
Last synced: about 1 month ago
JSON representation
Load and parse VTT files.
- Host: GitHub
- URL: https://github.com/smudger/transcriptions
- Owner: smudger
- Created: 2022-06-22T14:05:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-22T14:43:38.000Z (over 2 years ago)
- Last Synced: 2024-11-14T14:52:06.137Z (about 1 month ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VTT Transcriptions
This small PHP package assists in the loading and parsing of VTT files.
## Usage
```php
use Smudger\Transcriptions\Transcription;$transcription = Transcription::load('path/to/file.vtt');
foreach ($transcription->lines() as $line) {
// $line->body
// $line->toAnchorTag()
// $line->beginningTimestamp()
}
```## License
This package is open-sourced software licensed under the [MIT](https://opensource.org/licenses/MIT) license.