Skip to content

Timmyway/book-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Book Reader - AI-Powered Text-to-Speech

πŸš€ Book Reader is an AI-powered text-to-speech (TTS) application that converts text into high-quality speech using various models. It supports multiple languages and formats, allowing users to generate and listen to audio files easily.

🌟 Features

  • πŸŽ™οΈ Generate speech from text using AI models
  • 🌍 Supports multiple languages
  • πŸ“‚ Outputs in WAV formats
  • ⚑ Asynchronous background processing
  • 🎡 List and play generated audio files

πŸ›  Tech Stack

  • Frontend: Alpine.js, Bootstrap
  • Backend: Flask (Python)
  • Database: SQLite / MySQL (for task management)
  • TTS Models: ONNX-based models

πŸ“¦ Installation

1️⃣ Clone the repository:

git clone https://github.com/your-username/book-reader.git  
cd book-reader

2️⃣ Set up a virtual environment (optional but recommended):

python -m venv venv
source venv/bin/activate  # On macOS/Linux
venv\Scripts\activate  # On Windows

3️⃣ Install dependencies:

pip install -r requirements.txt

4️⃣ Run the application:

flask run

The app will be available at http://127.0.0.1:5000/ πŸŽ‰

πŸ“Œ Usage Enter your text in the input field. Select a language and a speech model. Click Generate Speech and wait for processing. Listen or download the generated audio from the listed files.

πŸš€ API Endpoints GET /languages β†’ Fetch available languages GET /models/ β†’ Get models for a language POST /generate β†’ Generate speech (returns task ID) GET /check_status/<task_id> β†’ Check generation status GET /audio_files β†’ List generated audio files

🀝 Contributing Pull requests are welcome! Feel free to open an issue for discussions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published