Skip to content

Listen to Pdf/Rtf/txt/docs/epub/mobi/odt book with just a few line of Python code. Leave a ⭐ if you like It.

License

Notifications You must be signed in to change notification settings

Py-Contributors/AudioBook

Folders and files

NameName
Last commit message
Last commit date
Oct 16, 2022
Oct 16, 2022
Oct 24, 2020
Oct 16, 2022
Oct 22, 2020
Oct 23, 2020
Oct 23, 2020
Oct 22, 2020
Oct 16, 2022
Oct 16, 2022
Oct 22, 2020
Oct 15, 2022

Repository files navigation

website title image

👉 Listen to any PDF book with a few lines of Python code👈

repo language github stars github forks code size

pypi status download docs dependices

discord invite pyttsx3 total contributors

Installation

Install using pypi

pip install audiobook
from audiobook import AudioBook
# argument: Speech-Speed="slow/normal/fast", volume = 0.0 to 1.0
ab = AudioBook(speed="normal", volume=1.0) 

# if file is password protected, pass password as argument

ab.save_audio(file_path) # save audio file 
ab.read_book(file_path) # listen to the book
ab.create_json_book(file_path) # create json file of the book

ab.get_library() # get all the books in your library

Usages

The audiobook is a python module for listening to your favourite PDF book.

Test

Run tests:

pip install -r requirements.txt
python -m unittest tests

Documentation

Read Detailed Documentation here

Linux Installation Requirements

  • If you are using a Linux system and the voice output is not working, then : Install espeak , ffmpeg and libespeak1 as shown below:
sudo apt update && sudo apt install espeak ffmpeg libespeak1

Roadmap

  • Speech-Speed Control
  • Support more extensions
  • Save the audiobook for future

Project status

This project is currently in development. Any contributions are welcome.

Changelog

V2.0.0

  • Save Audio Book locally

  • Listen to the book

  • Speech-speed control

  • Read password-protected PDF

  • Create JSON file for the book

  • Change the voice of the narrator

  • Support more extensions

Author

  • Module : AudioBook
  • Author : py-contributors
  • Language : Python

Contributors