Build a local read-aloud tool that handles scanned documents, not just text. Input: PDF, EPUB, DOCX, plain text, and images (PNG, JPEG, HEIC). Text extraction, which is the point of this build. For a PDF, first try the embedded text layer. Detect the scanned case explicitly — a page whose extracted text is empty or is a few stray characters — and fall back to OCR with Tesseract on a rendering of that page at 300 DPI. Handle a mixed document, where some pages have a text layer and some do not, page by page rather than choosing one strategy for the whole file. For images, always OCR. OCR quality steps that make the difference between usable and useless: deskew the page, convert to greyscale and threshold before recognition, and detect the page's language from a user selection rather than guessing. Two-column layouts must be handled by column detection, because reading a two-column page left to right produces nonsense — this is the single most common failure of naive OCR reading and it should be tested explicitly. Cleanup before speech: join hyphenated words split across line ends, strip repeated headers and footers detected across pages, drop page numbers, and collapse the line breaks that OCR inserts mid-sentence. Raw OCR text read aloud sounds broken even when the recognition was perfect. Speech: a local TTS model (Piper for speed, Kokoro for quality), with speed control from 0.5 to 3 times, and a pronunciation dictionary the user maintains. Synthesise a sentence ahead so playback does not stutter at boundaries. Reading interface: the document text displayed with the sentence being spoken highlighted and auto-scrolled, click any sentence to jump there, and playback position remembered per document. Show the OCR confidence per page and let the user correct recognised text before or during playback, with the correction persisting. Export: the extracted text as Markdown, and the spoken audio as an MP3 with chapter markers per document section, for listening elsewhere. Out of scope: mobile apps, any cloud voice, sync between devices, and translation.