How fernandodev0/biblioteca_audio_play works
Biblioteca is a desktop PDF-to-audiobook reader. A person imports a PDF in Estúdio; the app extracts and classifies page content, stores the document and reading metadata, then generates Opus clips with word timings for eligible text. Acervo lists processed books, and Leitura presents two pages while playing and highlighting speech. The README also documents search, resumable batches, OCR for image-only pages, and persisted reading position. Edges follow shown imports/calls or README-described behavior; some integration details are documented but not visible in sampled code.
Main entry points: leitura.py Two-page reader · pipeline.py Import and batch pipeline · shell.py Screen navigation · tts.py Speech synthesis
Components 22
Desktop interface
- Application setup
app/main.py - Screen navigation
app/ui/shell.py - PDF import
app/ui/estudio.py - Book catalog
app/ui/acervo.py - Two-page reader
app/ui/leitura.py - Text and code view
app/ui/texto.py - Syntax highlighting
app/ui/sintaxe.py
Document processing
- PDF extraction
app/extract.py - Block classification
app/classify.py - Import and batch pipeline
app/pipeline.py - On-demand capacity
app/machine.py
Audio generation
- Speech synthesis
app/tts.py - Opus conversion
app/opus.py - Word timing
app/align.py - Audio playback
app/player.py
Library data
- Library index
app/db.py - Data locations
app/paths.py - PDF text audio
biblioteca
Other components
- Reader
- Francisca neural voice
- Tesseract OCR
- VLC
Connections 25
- Reader → Application setup: opens
README.md - Application setup → Screen navigation: shows
app/main.py - Screen navigation → PDF import: routes to
app/ui/shell.py - Screen navigation → Book catalog: routes to
app/ui/shell.py - Screen navigation → Two-page reader: opens book
app/ui/shell.py - PDF import → Import and batch pipeline: starts import
app/ui/estudio.py - Import and batch pipeline → PDF extraction: extracts pages
app/pipeline.py - PDF extraction → Block classification: classifies blocks
app/extract.py - Import and batch pipeline → Library index: records progress
app/pipeline.py - Import and batch pipeline → Speech synthesis: generates clips
app/pipeline.py - PDF extraction → Tesseract OCR: transcribes photos
README.md - Speech synthesis → Francisca neural voice: requests speech
app/tts.py - Speech synthesis → Opus conversion: converts audio
app/tts.py - Speech synthesis → Word timing: aligns fallback
app/tts.py - Import and batch pipeline → PDF text audio: writes artifacts
README.md - Data locations → PDF text audio: locates files
app/paths.py - Library index → PDF text audio: indexes artifacts
app/db.py - Book catalog → Library index: lists books
app/ui/acervo.py - Two-page reader → Library index: loads reading data
app/ui/leitura.py - Two-page reader → Import and batch pipeline: requests missing audio
app/ui/leitura.py - Two-page reader → Audio playback: plays clips
app/ui/leitura.py - Two-page reader → On-demand capacity: checks capacity
app/ui/leitura.py - Two-page reader → Text and code view: renders page text
app/ui/leitura.py - Text and code view → Syntax highlighting: highlights code
app/ui/texto.py - Audio playback → VLC: plays through
README.md