Skip to main content

Automatically convert epubs to audiobooks

Project description

Autiobooks: Automatically convert epubs to audiobooks

Installing via pip and running PyPI - Python Version PyPI - Version

Autiobooks generates .m4b audiobooks from regular .epub e-books, using Kokoro's high-quality speech synthesis.

Demo of Autiobooks in action

Kokoro is an open-weight text-to-speech model with 82 million parameters. It yields natural sounding output while being able to run on consumer hardware.

It supports American, British English, French, Korean, Japanese and Mandarin (though we only-support English, for now) and a wide range of different voices with different accents and prosody.

PRs are welcome!

Changelog

1.0.1

Initial release

1.0.2

Window can be resized

1.0.3

  • Fix bug causing errors on some linux installs
  • Read epub files with chapters not marked as ITEM_DOCUMENT
  • Select all chapters if none are selected

How to install and run

(Note that pip installs are currently not working - we are looking into the cause of this, but in the meantime, please download the repo and run directly)

If you have Python 3 on your computer, you can install it with pip. Be aware that it won't work with Python 3.13.

pip install autiobooks

You will require ffmpeg and tkinter installed:

Linux:

sudo apt install ffmpeg python3-tkinter

MacOS:

brew install ffmpeg python-tk

To start the program, run:

autiobooks

The program creates .wav files for each chapter, then combines them into a .m4b file for playing using an audiobook player.

Roadmap

In no particular order:

  • Windows support
  • GPU support (currently untested)
  • CI tests - including handling of corner cases and odd epubs
  • PDF Support

Author

by David Nesbitt, distributed under MIT license. Check out the excellent project audiblez if you'd prefer a command-line interface.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autiobooks-1.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autiobooks-1.0.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file autiobooks-1.0.3.tar.gz.

File metadata

  • Download URL: autiobooks-1.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for autiobooks-1.0.3.tar.gz
Algorithm Hash digest
SHA256 032ecae0b3671b93346294fa914760971147b2d68e7cb3c5318205c7622fe8f7
MD5 f5e9948289620587469885576e77db8e
BLAKE2b-256 dcc34a77d2a7d86711b1fc8a5b4aefef473602285d5847edd376142cf6792bff

See more details on using hashes here.

File details

Details for the file autiobooks-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: autiobooks-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for autiobooks-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ac8b39e9b8f711e3b47dbcc797e66f1c11c6702186e74ca4dbb46227153decdc
MD5 1e02adebbe316434038c386870c2a778
BLAKE2b-256 3b64b815caad5510b23e49d1155f4d68f2841589405a33804392ca7e2a1f790f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page