AUDIOBOOKS · LoudPipe

From a 300-Page Scan to a Chaptered Audiobook in Four Steps

Scanned books have no text layer — and they are often the ones that most need to be heard. OCR, chapter split, synthesis, muxing: skip one and the delivery shows it.

中文版 → 中文

Why scans are the hard case

A retail ebook copies out cleanly. A scan is 300 images. Before anything can be read aloud, a machine has to see the letters, then decide where chapter one ends, then speak.

Every shortcut on that chain shows up in the result: dropped characters, one nine-hour file with no chapters, or a run that restarts from page one after a network hiccup.

Step 1 — OCR, without redoing the whole book

LoudPipe uses the Windows OCR engine: offline, no model download, just the system language pack. Three details make it usable:

  • Page-by-page decisions on mixed PDFs — pages with a text layer use it; only image pages are OCR'd. Many "scanned" books are actually mixed, and OCR-ing everything is pure waste.
  • Page-level cache — each page is written as it completes. Crash at page 187 and the rerun starts at 188. This is the difference between a tolerable long job and an unbearable one.
  • Layout recovery — paragraphs split by adaptive line spacing, page numbers at the margins removed, headings kept as their own paragraphs. Otherwise the narrator reads the page numbers.

Changing the language or DPI invalidates the cache automatically.

Step 2 — Chapters, by order of trust

Bookmarks first, then heading patterns (Chapter N, Part One, Prologue), then a page-count fallback. Books with bookmarks are trivial; books with consistent headings are mostly covered by regex; only the rest degrade to "one chapter every N pages".

Spend ten minutes checking this. A wrong split wastes everything downstream.

Step 3 — Synthesis that assumes it will be interrupted

A 300-page book takes a while, and dropping connections are normal. What matters is not top speed but recovery:

  • Sentence-level chunks with checkpoints — finished chunks are recorded; failed chunks retry individually.
  • A pronunciation dictionary — Wwise, LUFS, Nyquist, product names. Technical books are unlistenable without one. Regex rules plus a built-in glossary.
  • Multi-role casting — regex routes different characters' lines to different voices and rates, synthesized group by group.

LoudPipe ships 318 voices across 70+ languages, all loaded at startup, so you audition before you commit instead of guessing from a name.

Step 4 — Deliver one M4B, not a folder of WAVs

A WAV per chapter is a working format, not a delivery format. What you ship is one M4B that skips chapters, remembers position and carries cover art:

  • AAC audio plus a chapter track players can navigate;
  • adjustable gaps between chapters (400 ms by default) so chapters end instead of running together;
  • cover art and metadata (title, author) written in;
  • muxing done by the bundled ffmpeg — nothing for the user to install.

Chapters are not M4B-only, either: WAV smpl/cue, MP3 CHAP, FLAC/OGG Vorbis CHAPTER and QuickTime chapters for M4A/MP4 all write and read back, to the millisecond.

Then actually listen

OCR and auto-splitting make mistakes. Before delivery, check three spots: the opening of chapter one, any chapter boundary, the last page. Look at the silence ratio — a 3-second "chapter" usually means a heading was OCR'd as body text.

Turning a scan into an audiobook is not magic; it is a pipeline where every step leaves a way back. Get the cache, the checkpointing, the split rules and the chapter muxing right, and 300 pages is just a longer wait than 30.

---

LoudPipe is on the Microsoft Store: OCR for scanned PDFs, per-chapter synthesis and one-click M4B, in a single window.

— End of article —

← Back to blog