Convert your Pdf in cool AudioBook with 3 lines of python code

in python •  4 years ago  (edited)

This article was originally published at CodePerfectPlus

AudioBook 🔊

Download
The AudioBook is a python module to Listen to your favorite pdf 📖. It also can be used offline.

Documentation

Check the Audiobook Documentation here

Installation

Install it from pypi

pip install audiobook
from audiobook import AudioBook
ab = AudioBook("file_path")
ab.text_to_speech()

Linux installation requirements

  • If you are on a Linux system and if 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

Links

GitHub • Pypi • Documentation

Contributions are welcome. Share your feedback in the comments.

Read more articles on CodePerfectPlus

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!