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.6

  • Fix chapter index - @tomhense

1.0.5

  • Fix pip installs

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

1.0.2

  • Window can be resized

1.0.1

  • Initial release

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:

python3 -m autiobooks

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

Author

by David Nesbitt, distributed under MIT license.

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.6.tar.gz (11.4 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.6-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autiobooks-1.0.6.tar.gz
  • Upload date:
  • Size: 11.4 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.6.tar.gz
Algorithm Hash digest
SHA256 faca392a600b118c3b34420e7be827e31ef9f9aece4bfcc64d2340215b4e1d5e
MD5 28d901f668e095514e1fa8909ffd78dd
BLAKE2b-256 a9b7a93fa6048eeb82e3fe5fff2b9950b6da71f4ef38d91dfe33610abdf4d277

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autiobooks-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 99d4238106cadae35deb12565f3aaac8d92e469b350e493331644c64612d3e5d
MD5 f4770f2b7930c161a13c242d96244d2a
BLAKE2b-256 735bdc2cc3fad6cd5cbbd7b085b137856950bd4d64568f50ccc79fce1f4a847d

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