{"id":18991789,"url":"https://github.com/drewthomasson/ebook2audiobookstyletts2","last_synced_at":"2025-08-24T11:10:30.918Z","repository":{"id":218476081,"uuid":"746481742","full_name":"DrewThomasson/ebook2audiobookSTYLETTS2","owner":"DrewThomasson","description":"This simple program makes use of Calibre to convert a ebook into chapters and styletts2 to turn that into a audiobook with voice cloning capabilities ","archived":false,"fork":false,"pushed_at":"2024-08-30T04:55:12.000Z","size":1019,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-17T00:18:00.493Z","etag":null,"topics":["audiobook-creator","audiobooks","docker","epub","styletts2","tts"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrewThomasson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-22T04:47:52.000Z","updated_at":"2025-04-16T19:25:46.000Z","dependencies_parsed_at":"2024-01-22T06:24:56.433Z","dependency_job_id":"7268a930-82b2-4323-ba5a-b929526b9bc7","html_url":"https://github.com/DrewThomasson/ebook2audiobookSTYLETTS2","commit_stats":null,"previous_names":["drewthomasson/ebook_to_audiobook_styletts","drewthomasson/ebook2audiobookstyletts2"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrewThomasson%2Febook2audiobookSTYLETTS2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrewThomasson%2Febook2audiobookSTYLETTS2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrewThomasson%2Febook2audiobookSTYLETTS2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrewThomasson%2Febook2audiobookSTYLETTS2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrewThomasson","download_url":"https://codeload.github.com/DrewThomasson/ebook2audiobookSTYLETTS2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250236506,"owners_count":21397392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audiobook-creator","audiobooks","docker","epub","styletts2","tts"],"created_at":"2024-11-08T17:15:09.620Z","updated_at":"2025-04-22T11:42:19.404Z","avatar_url":"https://github.com/DrewThomasson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ebook_to_audiobook_styletts\n\nThis program uses Calibre for converting eBooks into chapters and StyleTTS2 to transform these chapters into an audiobook. \n\nIt features text-to-speech technology with an optional voice cloning capability if a voice file is provided.\n## Demo\n\n\nhttps://github.com/DrewThomasson/ebook2audiobookSTYLETTS2/assets/126999465/b55f9fe8-98d1-41ab-a585-3c5b99f9b39f\n\n### Supported ebook File Types: \n.epub, .pdf, .mobi, .txt, .html, .rtf, .chm, .lit, .pdb, .fb2, .odt, .cbr, .cbz, .prc, .lrf, .pml, .snb, .cbc, .rb, and .tcr,\n(Best results are from using epub or mobi for auto chapter detection)\n\n### outputs as a m4b with all book metadata and chapters, example output file in an audiobook player app\n![Example_of_output_in_audiobook_program](https://github.com/DrewThomasson/VoxNovel/blob/dc5197dff97252fa44c391dc0596902d71278a88/readme_files/example_in_app.jpeg)\n\n## Gradio Web GUI\n\u003cimg width=\"1075\" alt=\"Screenshot 2024-08-27 at 7 23 48 PM\" src=\"https://github.com/user-attachments/assets/e57e012f-8533-4ca2-9463-5cd6083531c9\"\u003e\n\u003cimg width=\"1077\" alt=\"Screenshot 2024-08-27 at 7 24 05 PM\" src=\"https://github.com/user-attachments/assets/7397dbfe-993f-4202-b394-1a87cccc74b3\"\u003e\n\n\n## Features\n\n- Converts eBooks to text format using Calibre's `ebook-convert` tool.\n- Splits the eBook into chapters for easier processing.\n- Utilizes `StyleTTS2` for converting each chapter into an audio file.\n- Offers an optional voice cloning feature when provided with a voice file.\n\n\n## 🚀  Docker Quick Start 🐳\n\nTo quickly get started with this eBook to Audiobook converter, simply run the following Docker command:\n\nTo run the Docker container and start the Gradio interface, use the following command:\n\nTo run with a gpu\n```powershell\ndocker run -it --rm --gpus all -p 7860:7860 athomasson2/ebook2audiobookstyletts2:latest\n```\n\nTo run without a gpu\n```powershell\ndocker run -it --rm -p 7860:7860 athomasson2/ebook2audiobookstyletts2:latest\n```\nThis will start the Gradio interface on port `7860`. You can access it by navigating to `http://localhost:7860` in your web browser.\n\n## Requirements\n\n- Python 3.10\n- `styletts2` Python package\n- Calibre (for eBook conversion)\n- FFmpeg (for audiobook file creation)\n- Optional: Voice file for voice cloning\n- 4gb ram\n\n### Installation Instructions for Dependencies\n\n- Install Python 3.x from [Python.org](https://www.python.org/downloads/).\n- Calibre:\n  - Ubuntu: `sudo apt-get install -y calibre`\n  - macOS: `brew install calibre`\n  - Windows(Powershell in Administrator mode): `choco install calibre` \n- FFmpeg:\n  - Ubuntu: `sudo apt-get install -y ffmpeg`\n  - macOS: `brew install ffmpeg`\n  - Windows(Powershell in Administrator mode)s: `choco install ffmpeg` \n- Python packages: \n  ```bash\n  pip install styletts2 pydub nltk beautifulsoup4 ebooklib tqdm\n## Usage\n\nNavigate to the script's directory in the terminal and use one of the following commands:\n\n### Without Voice Cloning:\n```bash\npython styletts_to_ebook.py \u003cpath_to_ebook_file\u003e\n```\nReplace \u003cpath_to_ebook_file\u003e with the path to your eBook file.\n\n### With Voice Cloning:\n```bash\npython styletts_to_ebook.py \u003cpath_to_ebook_file\u003e \u003cpath_to_voice_file\u003e\n```\nReplace \u003cpath_to_ebook_file\u003e with the path to your eBook file.\n\nReplace \u003cpath_to_voice_file\u003e with the path to the voice file for cloning.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewthomasson%2Febook2audiobookstyletts2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrewthomasson%2Febook2audiobookstyletts2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewthomasson%2Febook2audiobookstyletts2/lists"}