Audiblez: Generate audiobooks from e-books
v4 Now with Graphical interface, CUDA support, and many languages!
Audiblez generates .m4b audiobooks from regular .epub e-books,
using Kokoro's high-quality speech synthesis.
Kokoro-82M is a recently published text-to-speech model with just 82M params and very natural sounding output. It's released under Apache licence and it was trained on < 100 hours of audio. It currently supports these languages: 🇺🇸 🇬🇧 🇪🇸 🇫🇷 🇮🇳 🇮🇹 🇯🇵 🇧🇷 🇨🇳
On 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.
On my M2 MacBook Pro, on CPU, it takes about 1 hour, at a rate of about 60 characters per second.
How to install the Command Line tool
If you have Python 3 on your computer, you can install it with pip.
You also need espeak-ng and ffmpeg installed on your machine:
sudo apt install ffmpeg espeak-ng # on Ubuntu/Debian 🐧
pip install audiblez
brew install ffmpeg espeak-ng # on Mac 🍏
pip install audiblez
Then you can convert an .epub directly with:
audiblez book.epub -v af_sky
It will first create a bunch of book_chapter_1.wav, book_chapter_2.wav, etc. files in the same directory,
and at the end it will produce a book.m4b file with the whole book you can listen with VLC or any
audiobook player.
It will only produce the .m4b file if you have ffmpeg installed on your machine.
How to run the GUI
The GUI is a simple graphical interface to use audiblez. You need some extra dependencies to run the GUI:
sudo apt install ffmpeg espeak-ng
sudo apt install libgtk-3-dev # just for Ubuntu/Debian 🐧, Windows/Mac don't need this
pip install audiblez pillow wxpython
Then you can run the GUI with:
audiblez-ui
How to run on Windows
After many trials, on Windows we recommend to install audiblez in a Python venv:
- Open a Windows terminal
- Create anew folder:
mkdir audiblez - Enter the folder:
cd audiblez - Create a venv:
python -m venv venv - Activate the venv:
.\venv\Scripts\Activate.ps1 - Install the dependencies:
pip install audiblez pillow wxpython - Now you can run
audiblezoraudiblez-ui - For Cuda support, you need to install Pytorch accordingly: https://pytorch.org/get-started/locally/
Speed
By 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:
audiblez book.epub -v af_sky -s 1.5
Supported Voices
Use -v option to specify the voice to use. Available voices are listed here.
The first letter is the language code and the second is the gender of the speaker e.g. im_nicola is an italian male voice.
For hearing samples of Kokoro-82M voices, go here
| Language | Voices |
|---|---|
| 🇺🇸 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 |
| 🇬🇧 British English | bf_alice, bf_emma, bf_isabella, bf_lily, bm_daniel, bm_fable, bm_george, bm_lewis |
| 🇪🇸 Spanish | ef_dora, em_alex, em_santa |
| 🇫🇷 French | ff_siwis |
| 🇮🇳 Hindi | hf_alpha, hf_beta, hm_omega, hm_psi |
| 🇮🇹 Italian | if_sara, im_nicola |
| 🇯🇵 Japanese | jf_alpha, jf_gongitsune, jf_nezumi, jf_tebukuro, jm_kumo |
| 🇧🇷 Brazilian Portuguese | pf_dora, pm_alex, pm_santa |
| 🇨🇳 Mandarin Chinese | zf_xiaobei, zf_xiaoni, zf_xiaoxiao, zf_xiaoyi, zm_yunjian, zm_yunxi, zm_yunxia, zm_yunyang |
For more detaila about voice quality, check this document: Kokoro-82M voices
How to run on GPU
By default, audiblez runs on CPU. If you pass the option --cuda it will try to use the Cuda device via Torch.
Check out this example: Audiblez running on a Google Colab Notebook with Cuda .
We 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.
Manually pick chapters to convert
Sometimes you want to manually select which chapters/sections in the e-book to read out loud.
To do so, you can use --pick to interactively choose the chapters to convert (without running the GUI).
Help page
For all the options available, you can check the help page audiblez --help:
usage: audiblez [-h] [-v VOICE] [-p] [-s SPEED] [-c] [-o FOLDER] epub_file_path
positional arguments:
epub_file_path Path to the epub file
options:
-h, --help show this help message and exit
-v VOICE, --voice VOICE
Choose narrating voice: a, b, e, f, h, i, j, p, z
-p, --pick Interactively select which chapters to read in the audiobook
-s SPEED, --speed SPEED
Set speed from 0.5 to 2.0
-c, --cuda Use GPU via Cuda in Torch if available
-o FOLDER, --output FOLDER
Output folder for the audiobook and temporary files
example:
audiblez book.epub -l en-us -v af_sky
to use the GUI, run:
audiblez-ui
Author
by Claudio Santini in 2025, distributed under MIT licence.
Related Article: Audiblez v4: Generate Audiobooks from E-books
Metadata
Release files for audiblez 0.4.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| audiblez-0.4.9.tar.gz | 18.8 kB | Without provenance | Details for audiblez-0.4.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| audiblez-0.4.9-py3-none-any.whl | Python 3 | none | any | Details for audiblez-0.4.9-py3-none-any.whl |
Total release size: 37.3 kB
Release files / audiblez-0.4.9.tar.gz
| Download URL | audiblez-0.4.9.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8e054ffcdc22606908f876b6c2f9c87bf07bf7191668f45d56df8d25659cb65
|
|
BLAKE2b-256 checksum How to use checksums |
5b7323bdd0ba6462df33ca5cf596afa77d874a8f40634c794de8bd05f49e405c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.11.11 Darwin/23.6.0
|
Release files / audiblez-0.4.9-py3-none-any.whl
| Download URL | audiblez-0.4.9-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e289e9e2ff8eaaa1a1673beb5d5b0d49fe9608f9b7d495b8fe1b5d95ded16f14
|
|
BLAKE2b-256 checksum How to use checksums |
12523486a84658aec478b3401d50ccf49503fb40f7526c178e1ce9a4153da59f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.11.11 Darwin/23.6.0
|
Security for audiblez 0.4.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.