CoolFace
Apppublic

uxoxo/eb2ab

sourceHugging Faceapache-2.0updated 11mo agoView on Hugging Face
0likes
App README

๐Ÿ“š ebook2audiobook + LLM Processor

Two features in one unified app!

Use the tabs at the top to switch between:

๐ŸŽ™๏ธ Tab 1: TTS Converter

CPU/GPU Converter from eBooks to audiobooks with chapters and metadata using XTTSv2, Bark, Vits, Fairseq, YourTTS, Tacotron and more. Supports voice cloning and +1110 languages!

๐Ÿค– Tab 2: LLM Processor

Transform ebooks with AI before converting to audio. Modernize language, simplify text, translate, or change tone using Claude, GPT, Llama, and more via OpenRouter.

How to access: Both features are available as tabs in the main interface!

[!IMPORTANT]

This tool is intended for use with non-DRM, legally acquired eBooks only. The authors are not responsible for any misuse of this software or any resulting legal consequences. Use this tool responsibly and in accordance with all applicable laws.

Features

  • โ€”๐Ÿ“š Splits eBook into chapters for organized audio
  • โ€”๐ŸŽ™๏ธ High-quality text-to-speech with multiple TTS engines
  • โ€”๐Ÿ—ฃ๏ธ Optional voice cloning with your own voice file
  • โ€”๐ŸŒ Supports +1110 languages (English by default)
  • โ€”๐Ÿ–ฅ๏ธ Designed to run on 4GB RAM

Supported eBook Formats

  • โ€”.epub, .pdf, .mobi, .txt, .html, .rtf, .chm, .lit, .pdb, .fb2, .odt, .cbr, .cbz, .prc, .lrf, .pml, .snb, .cbc, .rb, .tcr
  • โ€”Best results: .epub or .mobi for automatic chapter detection

How to Use - TTS Converter

  1. 1.Upload your eBook file
  2. 2.Select your preferred TTS engine and language
  3. 3.(Optional) Upload a voice sample for voice cloning
  4. 4.Click "Convert" and wait for processing
  5. 5.Download your audiobook with chapters and metadata

How to Use - LLM Processor

  1. 1.Get OpenRouter API Key: Visit openrouter.ai/keys and create a key
  2. 2.Set API Key: Add OPENROUTER_API_KEY to Space secrets (see Settings)
  3. 3.Upload & Transform:
  4. 4.Upload your ebook (EPUB, PDF, TXT, HTML)
  5. 5.Choose transformation (modernize, translate, simplify, or custom)
  6. 6.Select AI model (Claude, GPT, etc.)
  7. 7.Click "โœจ Transform My Ebook"
  8. 8.Download Processed Text: Save your transformed text file
  9. 9.Optional - Convert to Audiobook:
  10. 10.Go to "Main Parameters" tab (TTS Converter)
  11. 11.Upload your processed text file
  12. 12.Select voice and format
  13. 13.Generate audiobook!

Cost Examples (via OpenRouter):

  • โ€”200-page novel with Claude Haiku: ~$0.15-0.30
  • โ€”200-page novel with GPT-4o: ~$1.00-2.00

See OPENROUTER_SETUP.md for detailed setup instructions.

GitHub Repository

For local installation, Docker setup, and more details, visit: https://github.com/mrcn/eb2ab

Original project by Drew Thomasson: https://github.com/DrewThomasson/ebook2audiobook

License

Apache 2.0

Credits