Predicts and displays upcoming text from an author's published books during a live reading session.
- Python 3.10+
- A microphone (built-in or external)
pip install -r requirements.txtPlace .txt book files in data/books/, then run:
python -m scripts.ingest_booksuvicorn backend.main:app --host 0.0.0.0 --port 3690Navigate to http://localhost:3690 in your browser.
| Directory | Purpose |
|---|---|
backend/ |
Python backend — FastAPI, Whisper STT, SQLite FTS5, search logic |
frontend/ |
Browser display — HTML/CSS/JS with WebSocket client |
data/books/ |
Raw .txt book files for ingestion |
scripts/ |
Utility scripts (book ingestion) |
tests/ |
Test suite |
prototype/ |
System design documentation |
| Component | Technology |
|---|---|
| Speech-to-Text | OpenAI Whisper (local) |
| Database + Search | SQLite FTS5 |
| Backend | Python + FastAPI |
| Frontend | Vanilla JS + WebSocket |