Skip to content

EPUB and PDF text to speech reader user interface for text to speech backend. Use with your own local Kokoro 82M API or an OpenAI endpoint!

License

Notifications You must be signed in to change notification settings

richardr1126/OpenReader-WebUI

Repository files navigation

GitHub Stars GitHub Forks GitHub Watchers GitHub Issues GitHub Last Commit GitHub Release

Docker Image Size Docker Image Version Docker Hub

OpenReader WebUI 📄🔊

OpenReader WebUI is web-based reader Text-to-Speech capabilities, offering a TTS read along experience with narration for both PDF and EPUB documents. It can use any OpenAI compatible TTS endpoint, including Kokoro-FastAPI.

  • 🎯 TTS API Integration: Compatible with OpenAI text to speech API, Kokoro FastAPI TTS, or any other compatible service; enabling high-quality voice narration
  • 💾 Local-First Architecture: Uses IndexedDB browser storage - no server uploads required
  • 🛜 Optional Server-side documents: Manually upload documents to the next backend for all users to download
  • 🔍 Smart Text Processing: Splits content into sentence blocks (ePub tries to split at paragraphs)
  • 📚 EPUB Support: Read EPUB files with table of contents and synchronized text
  • 📄 PDF Support: Read PDF files with text extraction and page navigation
  • Modern Tech Stack: Built with Next.js, React, Tailwind CSS, and some Headless UI React
  • 🎨 Customizable Experience:
    • Set TTS API base URL (with optional API key)
    • Adjustable playback speed
    • Multiple voice options (checks /v1/audio/voices endpoint)
    • Multiple app layout theme options
    • Persistent user settings
Screen.Recording.2025-02-09.at.7.58.01.PM.mov

🐳 Docker Quick Start

docker run --name openreader-webui \
  -p 3003:3003 \
  -v openreader_docstore:/app/docstore \
  richardr1126/openreader-webui:latest

Note: The openreader_docstore volume is used to store server-side documents. You can mount a local directory instead. Or remove it if you don't need server-side documents.

Visit http://localhost:3003 to run the app.

Using Docker Compose

Create or add to a docker-compose.yml:

volumes:
  openreader_docstore:

services:
  openreader-webui:
    container_name: openreader-webui
    image: richardr1126/openreader-webui:latest
    ports:
      - "3003:3003"
    volumes:
      - openreader_docstore:/app/docstore
    restart: unless-stopped

⬆️ Update Docker Image

docker stop openreader-webui && docker rm openreader-webui
docker pull richardr1126/openreader-webui:latest

Dev Installation

Prerequisites

  • Node.js & npm (recommended: use nvm)

Steps

  1. Clone the repository:

    git clone https://github.com/richardr1126/OpenReader-WebUI.git
    cd OpenReader-WebUI
  2. Install dependencies:

    npm install
  3. Configure the environment:

    cp .env.template .env
    # Edit .env with your configuration settings
  4. Start the development server:

    npm run dev

    or build and run the production server:

    npm run build
    npm start

    Visit http://localhost:3003 to run the app.

    Dev server runs on port 3000 by default, while the production server runs on port 3003.

💡 Feature requests

For feature requests or ideas you have for the project, please use the Discussions tab.

🙋‍♂️ Support and issues

For general questions, you can reach out to me on Bluesky. If you encounter issues, please open an issue on GitHub following the template (which is very simple).

👥 Contributing

Contributions are welcome! Fork the repository and submit a pull request with your changes.

❤️ Acknowledgements

Docker Supported Architectures

  • linux/amd64 (x86_64)
  • linux/arm64 (Apple Silicon)
  • linux/arm/v7 (Raspberry Pi)

Stack

License

This project is licensed under the MIT License.

About

EPUB and PDF text to speech reader user interface for text to speech backend. Use with your own local Kokoro 82M API or an OpenAI endpoint!

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project