{"id":24366965,"url":"https://github.com/santinic/audiblez","last_synced_at":"2025-06-11T13:38:25.005Z","repository":{"id":272515501,"uuid":"916662373","full_name":"santinic/audiblez","owner":"santinic","description":"Generate audiobooks from e-books","archived":false,"fork":false,"pushed_at":"2025-03-02T18:28:03.000Z","size":12494,"stargazers_count":3887,"open_issues_count":29,"forks_count":254,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-06-04T06:54:38.215Z","etag":null,"topics":["audiobooks","epub","kokoro","python","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/santinic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["santinic"]}},"created_at":"2025-01-14T14:36:20.000Z","updated_at":"2025-06-04T01:47:48.000Z","dependencies_parsed_at":"2025-02-19T14:43:26.674Z","dependency_job_id":null,"html_url":"https://github.com/santinic/audiblez","commit_stats":null,"previous_names":["santinic/audiblez"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santinic%2Faudiblez","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santinic%2Faudiblez/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santinic%2Faudiblez/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santinic%2Faudiblez/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santinic","download_url":"https://codeload.github.com/santinic/audiblez/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santinic%2Faudiblez/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259274827,"owners_count":22832565,"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":["audiobooks","epub","kokoro","python","tts"],"created_at":"2025-01-19T01:02:35.399Z","updated_at":"2025-06-11T13:38:24.996Z","avatar_url":"https://github.com/santinic.png","language":"Python","funding_links":["https://github.com/sponsors/santinic"],"categories":["Python","python","Repos"],"sub_categories":[],"readme":"# Audiblez: Generate  audiobooks from e-books\n\n[![Installing via pip and running](https://github.com/santinic/audiblez/actions/workflows/pip-install.yaml/badge.svg)](https://github.com/santinic/audiblez/actions/workflows/pip-install.yaml)\n[![Git clone and run](https://github.com/santinic/audiblez/actions/workflows/git-clone-and-run.yml/badge.svg)](https://github.com/santinic/audiblez/actions/workflows/git-clone-and-run.yml)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/audiblez)\n![PyPI - Version](https://img.shields.io/pypi/v/audiblez)\n\n### v4 Now with Graphical interface, CUDA support, and many languages!\n\n![Audiblez GUI on MacOSX](./imgs/mac.png)\n\nAudiblez generates `.m4b` audiobooks from regular `.epub` e-books,\nusing Kokoro's high-quality speech synthesis.\n\n[Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M) is a recently published text-to-speech model with just 82M params and very natural sounding output.\nIt's released under Apache licence and it was trained on \u003c 100 hours of audio.\nIt currently supports these languages: 🇺🇸 🇬🇧 🇪🇸 🇫🇷 🇮🇳 🇮🇹 🇯🇵 🇧🇷 🇨🇳\n\nOn a Google Colab's T4 GPU via Cuda, **it takes about 5 minutes to convert \"Animal's Farm\" by Orwell** (which is about 160,000 characters) to audiobook, at a rate of about 600 characters per second.\n\nOn my M2 MacBook Pro, on CPU, it takes about 1 hour, at a rate of about 60 characters per second.\n\n\n## How to install the Command Line tool\n\nIf you have Python 3 on your computer, you can install it with pip.\nYou also need `espeak-ng` and `ffmpeg` installed on your machine:\n\n```bash\nsudo apt install ffmpeg espeak-ng                   # on Ubuntu/Debian 🐧\npip install audiblez\n```\n\n```bash\nbrew install ffmpeg espeak-ng                       # on Mac 🍏\npip install audiblez\n```\n\nThen you can convert an .epub directly with:\n\n```\naudiblez book.epub -v af_sky\n```\n\nIt will first create a bunch of `book_chapter_1.wav`, `book_chapter_2.wav`, etc. files in the same directory,\nand at the end it will produce a `book.m4b` file with the whole book you can listen with VLC or any\naudiobook player.\nIt will only produce the `.m4b` file if you have `ffmpeg` installed on your machine.\n\n## How to run the GUI\n\nThe GUI is a simple graphical interface to use audiblez.\nYou need some extra dependencies to run the GUI:\n\n```\nsudo apt install ffmpeg espeak-ng \nsudo apt install libgtk-3-dev        # just for Ubuntu/Debian 🐧, Windows/Mac don't need this\n  \npip install audiblez pillow wxpython\n```\n\nThen you can run the GUI with:\n```\naudiblez-ui\n```\n\n## How to run on Windows\n\nAfter many trials, on Windows we recommend to install audiblez in a Python venv:\n\n1. Open a Windows terminal\n2. Create anew folder: `mkdir audiblez`\n3. Enter the folder: `cd audiblez`\n4. Create a venv: `python -m venv venv`\n5. Activate the venv: `.\\venv\\Scripts\\Activate.ps1`\n6. Install the dependencies: `pip install audiblez pillow wxpython`\n7. Now you can run `audiblez` or `audiblez-ui`\n8. For Cuda support, you need to install Pytorch accordingly: https://pytorch.org/get-started/locally/\n\n\n## Speed\n\nBy default the audio is generated using a normal speed, but you can make it up to twice slower or faster by specifying a speed argument between 0.5 to 2.0:\n\n```\naudiblez book.epub -v af_sky -s 1.5\n```\n\n## Supported Voices\n\nUse `-v` option to specify the voice to use. Available voices are listed here.\nThe first letter is the language code and the second is the gender of the speaker e.g. `im_nicola` is an italian male voice.\n\n[For hearing samples of Kokoro-82M voices, go here](https://claudio.uk/posts/audiblez-v4.html)\n\n| Language                  | Voices                                                                                                                                                                                                                                     |\n|---------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 🇺🇸 American English     | `af_alloy`, `af_aoede`, `af_bella`, `af_heart`, `af_jessica`, `af_kore`, `af_nicole`, `af_nova`, `af_river`, `af_sarah`, `af_sky`, `am_adam`, `am_echo`, `am_eric`, `am_fenrir`, `am_liam`, `am_michael`, `am_onyx`, `am_puck`, `am_santa` |\n| 🇬🇧 British English      | `bf_alice`, `bf_emma`, `bf_isabella`, `bf_lily`, `bm_daniel`, `bm_fable`, `bm_george`, `bm_lewis`                                                                                                                                          |\n| 🇪🇸 Spanish              | `ef_dora`, `em_alex`, `em_santa`                                                                                                                                                                                                           |\n| 🇫🇷 French               | `ff_siwis`                                                                                                                                                                                                                                 |\n| 🇮🇳 Hindi                | `hf_alpha`, `hf_beta`, `hm_omega`, `hm_psi`                                                                                                                                                                                                |\n| 🇮🇹 Italian              | `if_sara`, `im_nicola`                                                                                                                                                                                                                     |\n| 🇯🇵 Japanese             | `jf_alpha`, `jf_gongitsune`, `jf_nezumi`, `jf_tebukuro`, `jm_kumo`                                                                                                                                                                         |\n| 🇧🇷 Brazilian Portuguese | `pf_dora`, `pm_alex`, `pm_santa`                                                                                                                                                                                                           |\n| 🇨🇳 Mandarin Chinese     | `zf_xiaobei`, `zf_xiaoni`, `zf_xiaoxiao`, `zf_xiaoyi`, `zm_yunjian`, `zm_yunxi`, `zm_yunxia`, `zm_yunyang`                                                                                                                                 |\n\nFor more detaila about voice quality, check this document: [Kokoro-82M voices](https://huggingface.co/hexgrad/Kokoro-82M/blob/main/VOICES.md)\n\n## How to run on GPU\n\nBy default, audiblez runs on CPU. If you pass the option `--cuda` it will try to use the Cuda device via Torch.\n\nCheck out this example: [Audiblez running on a Google Colab Notebook with Cuda ](https://colab.research.google.com/drive/164PQLowogprWQpRjKk33e-8IORAvqXKI?usp=sharing]).\n\nWe don't currently support Apple Silicon, as there is not yet a Kokoro implementation in MLX. As soon as it will be available, we will support it.\n\n## Manually pick chapters to convert\n\nSometimes you want to manually select which chapters/sections in the e-book to read out loud.\nTo do so, you can use `--pick` to interactively choose the chapters to convert (without running the GUI).\n\n\n## Help page\n\nFor all the options available, you can check the help page `audiblez --help`:\n\n```\nusage: audiblez [-h] [-v VOICE] [-p] [-s SPEED] [-c] [-o FOLDER] epub_file_path\n\npositional arguments:\n  epub_file_path        Path to the epub file\n\noptions:\n  -h, --help            show this help message and exit\n  -v VOICE, --voice VOICE\n                        Choose narrating voice: a, b, e, f, h, i, j, p, z\n  -p, --pick            Interactively select which chapters to read in the audiobook\n  -s SPEED, --speed SPEED\n                        Set speed from 0.5 to 2.0\n  -c, --cuda            Use GPU via Cuda in Torch if available\n  -o FOLDER, --output FOLDER\n                        Output folder for the audiobook and temporary files\n\nexample:\n  audiblez book.epub -l en-us -v af_sky\n\nto use the GUI, run:\n  audiblez-ui\n```\n\n## Author\n\nby [Claudio Santini](https://claudio.uk) in 2025, distributed under MIT licence.\n\nRelated Article: [Audiblez v4: Generate Audiobooks from E-books](https://claudio.uk/posts/audiblez-v4.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantinic%2Faudiblez","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantinic%2Faudiblez","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantinic%2Faudiblez/lists"}