Pipeline: extract (pdftotext) -> scan (OCR-defect report + fix template) -> clean (noise/header removal, hyphenation, exact-string/regex OCR repairs, chapter-heading detection) -> voices (sample + comparison) -> chunk (sentence-aware) -> synth (resumable edge-tts) -> stitch (ffmpeg concat + RMS verify) -> chapters (ID3v2.4 CHAP). Config-driven per book; validated end-to-end on a clean digital PDF and on a 546-page scanned book (byte-identical clean output to the reference run, 95 auto-detected chapters).
9 lines
265 B
Python
9 lines
265 B
Python
"""pdf2audiobook: turn a PDF into a narrated MP3 audiobook.
|
|
|
|
Pipeline: extract text -> scan/repair OCR defects -> voice sampling ->
|
|
sentence-aware chunking -> resumable edge-tts synthesis -> ffmpeg stitch ->
|
|
ID3v2.4 CHAP chapter markers.
|
|
"""
|
|
|
|
__version__ = "0.1.0"
|