A newer version of the Gradio SDK is available: 6.18.0
Text Input Directory
Place your book text files here for audiobook generation.
Directory Structure
Create a subdirectory for each book:
Text_Input/
βββ Book Name 1/
β βββ book.txt # Main text file
β βββ cover.jpg # Book cover image (optional)
β βββ book.nfo # Metadata file (optional)
βββ Book Name 2/
β βββ another_book.txt
β βββ cover.png
βββ ...
Text File Requirements
- Format: Plain text (.txt) files
- Encoding: UTF-8
- Content: Clean text without excessive formatting
- Structure: Use paragraph breaks for natural speech flow
Optional Files
- cover.jpg/png: Book cover image for M4B metadata
- book.nfo: XML metadata file with book information (title, author, etc.)
Text Preparation Tips
- Remove table of contents, page numbers, headers/footers
- Keep chapter headings (e.g., "Chapter 1")
- Use proper punctuation for natural speech
- Remove excessive line breaks or formatting
- Ensure UTF-8 encoding for special characters
Processing
- Add your book directory to Text_Input/
- Run the main program and select your book
- The system will chunk the text and generate JSON metadata
- Use the generated chunks for TTS audiobook creation