CLI tool for AI-assisted creation of bilingual books
Top 5.9% on sourcepulse
This tool assists users in creating bilingual EPUB and TXT books using AI translation services. It's designed for public domain books, offering a way to generate multilingual versions of literary works.
How It Works
The tool leverages various large language models (LLMs) for translation, including OpenAI's GPT series, Claude, Gemini, and others via the liteLLM library. Users provide an EPUB or TXT file and an API key for their chosen translation service. The tool processes the book content, sends it to the LLM for translation, and then reconstructs the book in a bilingual format.
Quick Start & Requirements
pip install -r requirements.txt
or pip install -U bbook_maker
.python3 make_book.py --book_name test_books/animal_farm.epub --openai_key ${openai_key} --test
or bbook --book_name test_books/animal_farm.epub --openai_key ${openai_key} --test
.Highlighted Details
--test
flag for previewing translations without incurring full costs.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
1 week ago
1 day