prygun2 / audiosplit
Audiobook split
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/prygun2/audiosplit
Requires
- ext-json: *
- ext-simplexml: *
This package is not auto-updated.
Last update: 2025-12-22 00:16:41 UTC
README
Install
git clone https://gitlab.com/veselov.denis/audiobook.git audiobookcd audiobookcomposer 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 appdocker-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 |