Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EPUB Reader with Text-to-Speech and Chat Mode

Overview

This script allows you to read EPUB books with text-to-speech (TTS) support and an interactive chat mode. You can navigate through sentences, replay text, and ask questions about the current sentence. Everything runs on your machine for free.

Features

  • Extracts text from EPUB files
  • Uses TTS for sentence-by-sentence playback
  • Allows navigation with keyboard shortcuts:
    • Right Arrow: Next sentence
    • Left Arrow (single click): Repeat current sentence
    • Left Arrow (double click): Previous sentence
    • Space: Enter chat mode for current sentence
    • ESC: Exit program
  • Chat mode using Llama3.1 for context-aware discussions

Installation

Requirements

Ensure you have Python installed (>=3.8). Then, install dependencies:

pip install -r requirements.txt

Additional Setup

  • The script will automatically download the punkt tokenizer if not already installed.
  • The TTS model will be loaded on first use.
  • Ollama has to be installed and running (it's free, see https://ollama.com/)

Usage

Run the script and provide an EPUB file path when prompted:

python epub_reader.py

Follow the on-screen instructions to navigate and interact with the book.

About

Read ebooks out loud and discuss them with AI, locally

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages