-
-
Notifications
You must be signed in to change notification settings - Fork 35
Split chapter MP3 audio chapter file into verse files
Oliver Tseng edited this page May 27, 2022
·
6 revisions
If you have a MP3 audio file of the Bible and want to split it into verse files, follow the below instructions.
- Install ffmpeg
-
Create a data directory in the UBA folder
-
Put the mp3 file and verse info files in the data folder
-
The verse info file should contain lines with the following format:
{ label: "1", start: 6, end: 10.99 },
The label is the verse number and start where the verse starts
The file can contain other lines (such as html or javascript code), so you can just include an entire html file that has the above info in a javascript block.
- In the UBA folder, run:
- python -m tools.SplitMp3File data/your_mp3_file data/your_data_file [Bible] [Book number] [Chapter number]
Example:
- python -m tools.SplitMp3File data/40_Matthew001.mp3 data/40_1.data KJV 40 1
The verse files will then be created under the /audio/bible directory