No description
Find a file
Richard Roberson 02bf20e137 Update readme
2025-02-04 04:03:43 -07:00
public Apple web app capable changes 2025-01-26 16:49:05 -07:00
scripts First push 2025-01-18 04:58:57 -07:00
src Only show footer in production 2025-02-04 03:18:20 -07:00
.env.template Only show footer in production 2025-02-04 03:18:20 -07:00
.gitignore Buggy but working 2025-01-18 19:30:50 -07:00
empty-module.ts First push 2025-01-18 04:58:57 -07:00
eslint.config.mjs First push 2025-01-18 04:58:57 -07:00
LICENSE Initial commit 2025-01-18 00:36:14 -07:00
next.config.ts First push 2025-01-18 04:58:57 -07:00
package-lock.json use howl for audio playback 2025-01-22 14:59:43 -07:00
package.json use howl for audio playback 2025-01-22 14:59:43 -07:00
postcss.config.mjs First push 2025-01-18 04:58:57 -07:00
README.md Update readme 2025-02-04 04:03:43 -07:00
tailwind.config.ts Add theme switching + fixes 2025-01-19 03:44:04 -07:00
tsconfig.json First push 2025-01-18 04:58:57 -07:00

License: MIT Contributions Welcome

OpenReader WebUI

OpenReader WebUI is a sleek, web-based PDF reader with built-in Text-to-Speech capabilities, offering a seamless reading experience with synchronized audio narration.

  • 🎯 TTS API Integration: Compatible with OpenAI API TTS and Kokoro FastAPI TTS, enabling high-quality voice narration
  • 💾 Local-First Architecture: Secure document handling with IndexedDB browser storage - no server uploads required
  • 🔍 Smart Text Processing: Real-time sentence detection and synchronized text highlighting during playback
  • Modern Tech Stack: Built with Next.js, React, and Tailwind CSS
  • 🎨 Customizable Experience:
    • Adjustable playback speed
    • Multiple voice options
    • Dark/light/system theme support
    • Persistent user settings
  • 📱 Cross-Platform: Responsive design works seamlessly across desktop and mobile devices

Demo

https://github.com/user-attachments/assets/323251e6-3b3b-43cc-b139-cdab01ca7d75

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
    

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

Features

  • Real-time sentence by sentence text-to-speech via OpenAI API TTS, Kokoro FastAPI TTS, or others compatible with the /v1/audio/speech endpoint
  • IndexedDB-powered local storage
  • Synchronized text highlighting during playback (using string similarity for best match on the page)
  • Configurable playback speed and voice options, which checks /v1/audio/voices for available voices
  • Click-to-skip on the same page for navigation
  • Responsive design with light, dark, and system themes
  • All configuration settings saved in IndexedDB

Stack

  • Framework: Next.js (React)
  • Storage: IndexedDB (in broswer db store)
  • PDF Processing:
  • UI Components:
    • Headless UI
    • Tailwind CSS
  • TTS Integration: anything you want

Project Structure

src/
├── app/           // Next.js app router
├── components/    // Reusable UI components
├── contexts/      // State management contexts
└── services/      // Utility functions & integrations

Contributing

Contributions are welcome! Fork the repository and submit a pull request with your changes. For significant alterations, please open an issue first.

License

This project is licensed under the MIT License.

Acknowledgements

Support

If you encounter issues or have suggestions, please open an issue on GitHub.