prygun2 / audiosplit
Audiobook split
dev-master
2021-01-23 03:00 UTC
Requires
- ext-json: *
- ext-simplexml: *
This package is not auto-updated.
Last update: 2024-06-23 17:15:23 UTC
README
Book
Install
git clone https://gitlab.com/veselov.denis/audiobook.git audiobook
cd audiobook
composer install
Usage without Docker
php index.php --xml "silence-files/silence1.xml" --chapter "3000" --long "900000" --part "1000"
php index.php --xml "silence-files/silence1.xml" --chapter "3000" --long "900000" --part "1000" > segments.json
Docker
docker-compose build app
docker-compose up -d
Usage with Docker
docker-compose exec app php index.php --xml "silence-files/silence1.xml" --chapter "3000" --long "900000" --part "1000"
docker-compose exec app php index.php --xml "silence-files/silence1.xml" --chapter "3000" --long "900000" --part "1000" > segments.json
Controls
Key | Info | Required | Default value |
---|---|---|---|
xml | The path to an XML file with silence intervals | true | - |
chapter | The silence duration which reliably indicates a chapter transition, milliseconds | false | 3000 |
long | The maximum duration of a segment, after which the chapter will be broken up into multiple segments, milliseconds | false | 300000 |
part | A silence duration which can be used to split a long chapter (always shorter than the silence duration used to split chapters), milliseconds | false | 1000 |