Tired of waiting for your favorite ebook's audiobook version? Audiblez, a Python program, lets you create your own audiobooks from EPUB ebooks on Linux, macOS, and Windows.
Table of Contents
Introduction
Waiting for audiobook releases can be frustrating, especially for niche titles. Audiblez offers a solution: generate your own audiobooks using text-to-speech (TTS) technology. Powered by the Kokoro v0.19 model, Audiblez produces remarkably natural-sounding narration.
Kokoro: A High-Quality TTS Model
Kokoro is a compact yet powerful TTS model (82 million parameters) renowned for its high-quality output. It leverages StyleTTS 2 for expressive speech and ISTFTNet for efficient audio processing. Trained on ethically sourced data (public domain and synthetic audio), Kokoro delivers exceptional results.
Kokoro's Key Features:
Limitations: Kokoro v0.19 lacks voice cloning and relies on an external grapheme-to-phoneme (g2p) converter. Its training focuses on long-form narration, potentially affecting conversational speech performance.
Audiblez: Your EPUB-to-Audiobook Converter
Audiblez is a command-line Python program that uses Kokoro to convert EPUB ebooks into M4B audiobooks. The process involves extracting text, synthesizing speech, and combining audio chapters using ffmpeg. It supports multiple languages and voices, allowing for speed and chapter customization. Currently, Audiblez only supports .EPUB files.
Audiblez's Key Features:
Supported Languages and Voices:
Audiblez currently supports: en-us, en-gb, fr-fr, ja, kr, and cmn. Voice options include: af, af_bella, af_nicole, af_sarah, af_sky, am_adam, am_michael, bf_emma, bf_isabella, bm_george, and bm_lewis. Voice samples are available at the Kokoro-TTS demo: https://www.php.cn/link/3fc703661503434d7524267dfdd3e668.
Installing Audiblez on Linux
pipx install audiblez
kokoro-v0_19.onnx
) and voice files (voices.json
) from https://www.php.cn/link/5798df74de9eda02fcf3d1ffb13201fd.Converting EPUBs to Audiobooks
Use the command: audiblez book.epub -l en-us -v af_sky
(replace with your file and voice).
Adjusting Audio Speed
Use the -s
option (0.5x to 2.0x speed): audiblez book.epub -l en-gb -v af_sky -s 1.5
GPU Acceleration
pip install onnxruntime-gpu
--providers
flag: audiblez book.epub -l en-gb -v af_sky --providers CUDAExecutionProvider
Conclusion
Audiblez simplifies audiobook creation from existing ebooks. While still under development, it provides a powerful and accessible tool. Future updates may include improved chapter navigation and image-to-text capabilities.
(Related Reads: Audiogenipy, Speech Note, eSpeak NG)
Featured Image by Stas Knop from Pexels.
The above is the detailed content of How To Convert Epub Ebooks To Audiobooks Using Audiblez And Kokoro In Linux. For more information, please follow other related articles on the PHP Chinese website!